Skip to main content

Thread: Unable to change user/group permissions on samba shares


hi everyone,
i'm pretty new linux world , first real problem can't solve self.
i've test samba share called "share" , i've created 3 users:
-mones
-fsu
-fsu2
created 2 groups (mapped unix):
-fsg
-fsg2

if create file windows on share can't change group of file created! can change permissions not group itself.

smb.conf:
code:
[share]  	path = /media/data/share  	create mask = 0775  	directory mask = 0775  	writeable = yes  ;	browseable = yes  	valid users = fsu, mones, @fsg, @fsg2
what doing wrong??
thanks,
simone.

if understand post don't think can achieve want achieve.

if have user named morbius , member of fsg group files save user=morbius , group=morbius.

can add parameter in share definition force group ownership:
code:
force group = fsg
so when morbius saves file owner=morbius , group=fsg can have 1 "force user" , looks have 2 groups.

suppose can create 2 identical shares have same path differ name , group:
code:
[share-fsg]     path = /media/data/share     create mask = 0775     directory mask = 0775     writeable = yes ;   browseable = yes     force group = fsg      valid users = fsu, mones, @fsg
code:
[share-fsg2]     path = /media/data/share     create mask = 0775     directory mask = 0775     writeable = yes ;   browseable = yes     force group = fsg2      valid users = fsu, mones, @fsg2
you force saved group neutral group "nogroup" files saved belong same group.

again i'm not sure trying achieve.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Unable to change user/group permissions on samba shares


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support