Samba Share Setup (our way):

This assumes that Samba is installed and working. I use the default Slackware Samba packages.

 

First, create the Linux group which will have access to the share:

  groupadd -g xxx groupname

  (Replacing xxx with the groupid you wish to use and groupname with your preferred group name.)

Next, create the directory for the Samba Share:

  mkdir /home/Shared

Set the group for the share directory to the group created above:

  chgrp groupname /home/Shared

Set the permissions to let the group write the share, set the group sticky bit and remove permissions for others:

  chmod g+ws,o-rwx /home/Shared

  NOTE: Setting the sticky bit for the group forces new files and directories created within this share to belong to the same group as the share.

Add the section in /etc/samba/smb.conf for this share:

  [Shared]
    path = /home/Shared
    valid users = @groupname
    write list = @groupname
    read only = No
    create mask = 0660
    directory mask = 0770

If need be, add the Linux user(s):

  adduser username

Create a Samba password for the user(s):

  smbpasswd -a username

 

Stu's Linux Page

 

last updated 06-10-2008 20:40 by Stu...