Setup Samba Server on Ubuntu Linux 7.10

Configure Samba as File-server

File-server is used for user directories and a common shared directory. All files are in /home.

Create shared folder

$ sudo mkdir /home/Shared
$ sudo chmod 1775 /home/Shared   # use sticky tag
$ sudo chgrp users /home/Shared
$ ls -l /home/Shared
drwxrwxr-t 2 root  users  4096 2008-01-19 15:36 Shared

Users in group users have write permissions, other only read permission. One can only delete files which one has created (see: sticky tag, chown as t in permissions).

Export home folders

[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   create mask = 0644
   directory mask = 0755

Export shared folders

[shared]
   comment = Shared Directory
   browseable = yes
   writable = yes
   public = no        
   create mask = 0664
   directory mask = 1775
   path = /home/Shared

public = yes would mean that guest users are accepted, otherwise you have to authenticate yourself.

Setup Samba Client on MacOSX 10.4 (Tiger)

My old samba notes