View previous topic :: View next topic |
Author |
Message |
Yankee Tux's lil' helper
Joined: 25 Jul 2003 Posts: 77 Location: Germany
|
Posted: Fri Jul 25, 2003 11:22 pm Post subject: directory-related umask? |
|
|
Hi,
is there any opportunity to set up a directory-related umask. I mean there are options for that build in with samba and ftp servers.
If there is no direct way for this problem, maybe there is a work-a-round?
Thank you very much in advance for your help. |
|
Back to top |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Sat Jul 26, 2003 1:01 pm Post subject: |
|
|
u can set umasks in the samba config - see man smb.conf - every option that contains 'mask' is of interest concerning your question. beware that options as 'inherit' and the 'map' options interfere with permissions and masks... _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
|
Yankee Tux's lil' helper
Joined: 25 Jul 2003 Posts: 77 Location: Germany
|
Posted: Thu Jul 31, 2003 11:11 am Post subject: |
|
|
Thx for the answer, but what i really want to know is how i can set a fixed umask for a particular directory as a local user, apart from samba. |
|
Back to top |
|
|
kopfarzt Apprentice
Joined: 05 Apr 2003 Posts: 170 Location: Vienna, Austria
|
Posted: Thu Jul 31, 2003 1:04 pm Post subject: |
|
|
I don't think this is directly possible.
Nevertheless perhaps it's enough to use the directories group s-bit, which causes files created in that directory to be in the same group as the directory itself. Combined with a (global) 002 umask, this will essentially allow a group of people to write each others files.
If that is not enough and you are happy with samba, you can export and mount a share from localhost.
Depending on your needs, another workaround would be to create a filesystem (that roughly does what you want) on a file or partiton and mount that with proper flags (like vfats umask, dmask, fmask).
kopfarzt |
|
Back to top |
|
|
|