Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
directory-related umask?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Yankee
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 77
Location: Germany

PostPosted: Fri Jul 25, 2003 11:22 pm    Post subject: directory-related umask? Reply with quote

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
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Sat Jul 26, 2003 1:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Yankee
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 77
Location: Germany

PostPosted: Thu Jul 31, 2003 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
kopfarzt
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 170
Location: Vienna, Austria

PostPosted: Thu Jul 31, 2003 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum