This is a discussion on samba within the Linux Security forums, part of the System Security and Security Related category; Samba configuration file Yours truly # Samba config file created using SWAT # from 127.0.0.1 (127.0.0.1) # ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Samba configuration file
Yours truly # Samba config file created using SWAT # from 127.0.0.1 (127.0.0.1) # Date: 2004/04/15 20:05:47 # Global parameters [global] workgroup = NET Netbios name = samba server string = Samba Server %v security = user map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 debug timestamp = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = cups dns proxy = No printer admin = @adm printing = cups encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd admin users = @sysadmin #Samba is the domain and local master browser os level = 65 preferred master = yes domain master = yes local master = yes domain logons = yes logon path = \\%L\profiles\%u\%m #Automatically maps the home directory of the user logon drive = q: logon home = \\samba\%u add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u #Run a WINS server wins support = yes time server = yes #Allow only hosts in the local domain hosts allow = 127.0.0.1 192.168.2.0/24 hosts deny = 0.0.0.0/0 #necessary share for domain controller [netlogon] comment = Network Logon Service path = /home/netlogon guest ok = yes writable = no write list = @sysadmin share modes = no [profiles] #Directory for windows xp roaming profiles path = /home/samba-ntprof browseable = no writable = yes create mode = 0600 directory mode = 0700 profile acls = yes [homes] comment = Home Directories read only = No browseable = No [printer] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers. browseable = No [print$] path = /var/lib/samba/printers write list = @adm, root inherit permissions = Yes guest ok = Yes [pdf-generator] comment = PDF Generator (only valid users) path = /var/tmp printable = Yes print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" & [install] comment = linux machine path = /mnt/win_e/backup install read only = No guest ok = Yes browseable = yes [movies] comment = linux machine path = /mnt/win_f/movies read only = Yes guest ok = Yes valid users = churchill churchilll grazynka invalid users = cosmas [Grazynka] comment = linux machine path = /mnt/win_e/Grazynka read only = No valid users = grazynka browseable = Yes guest ok = no |