[nmglug] umask per directory

Sam Noble sam.noble at comcast.net
Thu Feb 19 07:16:49 PST 2004


I've not ever faced this issue before, would it work to make 'dirname' a
separate mount point, so that you could define the umask in fstab?

On Thu, 2004-02-19 at 14:41, Jason Schaefer wrote:
> Hello all
> 
> My problem is that I am setting 'chmod 2775 dirname' (sub-dirs inherit 
> the gid from "dirname"). Thats fine and dandy, BUT... When a user 
> wonders into "dirname" and makes a folder the permissions will be 755 
> (from /etc/profile umask 022 or ~/.bashrc). I don't want to change this 
> globally. In other words I don't want users to auto write 775 
> permissions except where I say.  I can't figure a way around this! Does 
> anyone have a method for forcing the umask on a particular directory? 
> So, when they make a folder or sub-folder under "dirname" it will be 775 
> and when they make it under their home (or anywhere else) it will be 755??
> 
> Thanks
> Jason
> 
> 
> _______________________________________________
> nmglug mailing list
> nmglug at nmglug.org
> http://www.nmglug.org/mailman/listinfo/nmglug

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.nmglug.org/pipermail/nmglug-nmglug.org/attachments/20040219/8a763d7d/attachment.pgp>


More information about the nmglug mailing list