Archive for the ‘LAD710 – LAB7’ Category

Samba How To, Using “system-config-samba” – Fedora 9

November 9, 2008

Required packages:

  • samba-3.2.4-0.21.fc9.i386
  • system-config-samba-1.2.63-1.fc9.noarch
  • samba-common-3.2.4-0.21.fc9.i386
  • samba-client-3.2.4-0.21.fc9.i386

Installing the required packages using yum:

#yum -y install samba system-config-samba samba-common samba-clients

Then execute system-config-samba to set the configurations for the samba server. The samba configuration file is /etc/samba/smb.conf






Your samba configuration file (/etc/samba/smb.conf) is going to be something like this:

workgroup = milton
server string = Milton’s Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
cups options = raw
username map = /etc/samba/smbusers

comment = Home Directories
browseable = no
writable = yes

comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes

path = /tmp
writeable = yes
valid users = milton

After a user login using a windows machine, It will have access to two folders, their home directory and the tmp folder.

If you have some problems in the server, just go to the folder /var/log/samba and check the log files:

  • log.nmbd
  • log.smbd

Actually I don’t like to use graphical tools to set up my servers, but this tools can really save you some time.