You are here

Samba Server Setup

This is very "quick and dirty" using the CentOS gui tools as much as possible

-install server & open firewall to samba
-create office and supervisor groups and a /home/common folder
-create all users on server and make them part of office, (+supervisor)
-add all users to Samba with Windows names and passwords
-share all home drives and set user access on shares as appropriate
-set permissions in the directory at the root of each share, appropriate to users
-chmod g+w -R * #at the top level of each shared directory so groups can read and write
-edit each users .bashrc file to allow groups to read and write, add: umask 002  
-add to each share in /etc/samba/smb.conf
        create mask=0770
        force create mode=0660
        directory mask=0770
        force directory mode=0770
-restart samba with: service smb restart
-set selinux policies:
 setsebool -P samba_enable_home_dirs on
 chcon -t samba_share_t /home/common
 -more selinux info at: http://fedoraproject.org/wiki/SELinux/samba