[global] netbios name = COLOSO workgroup = TABLAJERO passdb backend = smbpasswd:/etc/samba/smbpasswd encrypt passwords = yes os level = 65 domain master = yes local master = yes preferred master = yes security = user domain logons = yes server string = Samba Server printcap name = /etc/printcap load printers = yes cups options = raw # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/%m.log log level= 10 # all log information in one file # log file = /var/log/samba/smbd.log # Put a capping on the size of the log files (in Kb). max log size = 50 # The following are needed to allow password changing from Windows to # update the Linux system password also. # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. # NOTE2: You do NOT need these to allow workstations to change only # the encrypted SMB passwords. They allow the Unix password # to be kept in sync with the SMB password. # unix password sync = Yes # passwd program = /usr/bin/passwd %u # passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* ; logon path tells Samba where to put Windows NT/2000/XP roaming profiles logon path = \\%L\profiles\%u\%m logon script = logon.bat logon drive = H: ; logon home is used to specify home directory and ; Windows 95/98/Me roaming profile location logon home = \\%L\%u\.win_profile\%m time server = yes ; the below works on Red Hat Linux - other OSs might need a different command add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u [netlogon] path = /usr/local/samba/lib/netlogon writable = no browsable = no write list = ntadmin [profiles] ; you might wish to use a different directory for your ; Windows NT/2000/XP roaming profiles path = /home/samba-ntprof browsable = no writable = yes create mask = 0600 directory mask = 0700 [homes] read only = no browsable = no guest ok = no map archive = yes [printers] comment = All Printers path = /var/spool/samba browseable = yes # Set public = yes to allow user 'guest account' to print printable = yes # This one is useful for people to share files [tmp] comment = Temporary file space path = /tmp read only = no public = yes # A publicly accessible directory, but read only, except for people in # the "staff" group [public] comment = Public Stuff path = /home/samba public = yes read only = yes write list = @staff