Important Files
Steps
netbios-ssn stream tcp nowait root /usr/local/sbin/smbd smbd netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd
[global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = DIRT # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to 152.2.137, selected # machines (my office PC and my home PC), and the "loopback" interface. # For more examples of the syntax see the smb.conf man page allow hosts = 152.2.137. 152.2.142.123 152.2.129.140 localhost # This enables or disables logging of connections to a status file that # smbstatus can read status = yes # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents encrypt passwords = yes # this tells Samba to use a one log file log file = /var/log/smb.log # Put a capping on the size of the log files (in Kb). max log size = 100 # To make this one look like the smb.conf on topsecret [homes] guest ok = no browesable = yes read only = no create mode = 0750
root@tyagi# cd /usr/local/private root@tyagi# cp smbpasswd smbpasswd.old root@tyagi# addtosmbpass [username] < smbpasswd.old > smbpasswd.new root@tyagi# mv smbpasswd.new smbpasswd
root@tyagi# smbpasswd [username]
Notes