I am trying to create a shared public folder that a number of users
can all use, this will eventually be exported via CIFS.

My overall goal is twofold -
1) Any user can create a folder or file at any level under /public.
2) A folder or file can ONLY be deleted by the owner.


I have created a zpool called "thevault", I have then also created a
ZFS filesystem called public -

# zfs create -o casesensitivity=mixed thevault/public

I have created a user group called "vpublic" and added all the
nessecary users to that group...

# chgrp vpublic /thevault/public
# chmod 3775 /thevault/public            (stickybit, setgid and rwxrwx---)

I then needed to inherit the permissions so that subfolders of /public
would allow any user in the vpublic group to write to them -

# chmod A=\
owner@:rwxp---A-W-Co-:fd-----:allow, \
group@:rwxp----------:fd-----:allow, \
everyone@:------a-R-c--s:fd-----:allow \
/thevault/public


This works well at the level of /public. userA can create
/public/folderA and userB can write to /public/folderA and cannot
delete /public/folderA. The problem that I have is the stickybit does
not seem to be inherited for sub-folders and so once inside
/public/folderA its open season for any user on any file/folder.

How can I also inherit the stickybit or do something that will enable
similar desirable behaviour?

Thanks Adam.





-- 
Adam Retter
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to