Prev | Current Page 1340 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

conf directly. As root user, you can view the
contents of this file and make needed changes. If you selected user security (as recommended),
you will also be interested in the smbusers and smbpasswd files (in the /etc/samba directory).
These files, as well as commands such as testparm and smbstatus, are described in the following
sections.
Editing the smb.conf File
Changes you make using the Samba Server Configuration window or SWAT Web interface are
reflected in your /etc/samba/smb.conf file. Here??™s an example of a smb.conf file (with comments
removed):
[global]
workgroup = ESTREET
server string = Samba Server on Maple
hosts allow = 192.168.0.
printcap name = /etc/printcap
load printers = yes
printing = cups
log file = /var/log/samba/%m.log
max log size = 0
smb passwd file = /etc/samba/smbpasswd
security = user
encrypt passwords = Yes
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:
*all*authentication*tokens*updated*successfully*
pam password change = yes
739
Running a File Server 27
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
username map = /etc/samba/smbusers
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
I won??™t go through every line of this example, but here are some observations.


Pages:
1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352