HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_431
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 431 [root@deep /]# smbstatus Samba version 2.0.6  Service      uid      gid      pid     machine ---------------------------------------------- tmp          webmaster webmaster  3995   gate     (192.168.1.3) Sat Sep 25 19:40:54 1999 No locked files  Share mode memory usage (bytes):    1048464(99%) free + 56(0%) used + 56(0%) overhead = 1048576(100%) total Samba Users Tools The commands listed bellows are some that we use often in our regular use but much more exist and you must check the man page and documentation for more details and information. smbclient The “smbclient” program utility of Samba work like the interface of the FTP program. This small program allow you to get files from the server to the local machine, put files from the local machine to the server, retrieve directory information from the server and so on. · To connect to a Windows machine with smbclient utility, use the following command: [root@deep /]# smbclient //sbmserver/sharename -U smbclient [root@deep /]# smbclient //gate/tmp -U smbclient Password: Domain=[OPENARCH] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] smb: \> ls   .                                     D          0    Tue Mar 14 15:31:50 2000   ..                                    D          0    Tue Mar 14 15:31:50 2000   PostgreSQL                            D          0    Tue Mar 14 15:32:22 2000   Squid                                 D          0    Tue Mar 14 15:32:28 2000   Imap                                  D          0    Tue Mar 14 15:32:38 2000   E_comm                                D          0    Tue Mar 14 15:32:42 2000   StackGuard.pdf                        A        61440    Tue Dec 21 20:41:34 1999   installation-without-XFree86        A 448     Tue Dec 21 20:41:28 1999   lcap-0_0_3-2_src.rpm                  A        13481    Thu Jan 13 01:50:12 2000   mirc561t.exe                          A     948224      Tue Dec 21 20:41:54 1999                 65510 blocks of size 32768. 5295 blocks available smb: \> Where “//sbmserver” is the name of the server you want to connect to. “/sharename” is the directory on this server you want to connect to and, “-U” is your username on this machine. Installed files > /etc/rc.d/init.d/smb > /etc/rc.d/rc0.d/K35smb > /etc/rc.d/rc1.d/K35smb > /etc/rc.d/rc2.d/K35smb > /etc/rc.d/rc3.d/K35smb > /etc/rc.d/rc4.d/K35smb > /etc/rc.d/rc5.d/K35smb > /etc/rc.d/rc6.d/K35smb > /etc/codepages  > /etc/lmhosts  > /etc/pam.d/samba > /etc/smb.conf > /usr/bin/convert_smbpasswd > /usr/bin/mksmbpasswd.sh > /usr/man/man1/nmblookup.1  > /usr/man/man1/make_smbcodepage.1  > /usr/man/man1/smbclient.1  > /usr/man/man1/smbrun.1  > /usr/man/man1/smbsh.1  > /usr/man/man1/smbstatus.1  > /usr/man/man1/smbtar.1  > /usr/man/man1/testparm.1  > /usr/man/man1/testprns.1  > /usr/man/man5/lmhosts.5