[Samba] RES: Problem with group/user permissions on write

Nataniel Klug listas.nata at cnett.com.br
Thu Nov 24 12:56:07 MST 2011


	Steve,

	Reading your answer I got into a point that I tried this:

[bkp01]
  comment = Backup01
  path = /pub/bkp01
  valid users = @suporte @cnett
  admin users = @cnett
  create mask = 0644
  directory mask = 0755
  force security mode = 0
  force directory security mode = 0
  writable = yes

	I just added "force directory security mode" and now it's working.
Thank you!

> This is pretty ugly but it does what you want I think:
> 
> [stuff]
> 	comment = Shared stuff
> 	path = /home/stuff
> 	force group = users
> 	read only = No
> 	create mask = 0660
> 	force create mode = 0660
> 	security mask = 0770
> 	directory mask = 0770
> 	force directory mode = 0770
> 	directory security mask = 0770
> 
> Add the users you want.
> 
> HTH Steve.



More information about the samba mailing list