This is a working smb.conf for Red Hat 8.0 providing SHAREd level access to printer and files.

Notes:

1) In an XP environment, the default workgroup is mshome. You should change the workgroup name in global to reflect the default workgroup name so you don't have to go looking for your SAMBA shared resources.

2) Make sure you create Shared folder at the root of you Linux file system. Do this by doing a [cd /] and then a [mkdir Shared]. Change the ownership of Shared to nobody by doing a [chgrp nobody Shared] and a [chown nobody Shared]. After copying or editing your smb.conf file in /etc/samba to reflect the contents of this configuration file, be sure to start or restart your samba service with the command [service smb start] or [service smb restart].

# Samba config file created using SWAT
# from clint (127.0.0.1
# Date: 2003/02/25

# Global parameters

[global]

      workgroup = Workgroup
      netbios name = SAMBA
      server string = Samba Server
      security = SHARE
      encrypt passwords = Yes
      obey pam restrictions = Yes
      pam password change = Yes
      passwd program = /usr/bin/passwd %u
      passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
      unix password sync = Yes
      log file = /var/log/samba/%m.log
      max log size = 0
      socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
      dns proxy = No
      hosts allow = all
#    printcap name = etc/printcap
#    load printers = yes
      printing = lprng
      preferred master = yes

[homes]

      comment = Home Directories
      valid users = %S
      read only = No
      create mask = 0664
      directory mask = 0775
      browseable = No

[printers]

      comment = All Printers
      path = /var/spool/samba
      printable = Yes
      guest ok = Yes
      browseable = No
      public = yes

[Shared]

      path = /Shared
      read only = No
      guest ok = Yes
      create mask = 0664
      directory mask = 0775

Return to Linux Group SIG page