[SunHELP] umask

Christopher Smiga sunhelp at sunhelp.org
Thu Jul 26 19:14:11 CDT 2001


Warren,

I was reading about this a few days ago. "umask" for files is 666 minus the
umask set for the files. "umask" for directories is 777 minus the umask set
for the directory. I haven't read how to distinguish from files or directories
yet, but I've read that it can be done.

Christopher Smiga

-----------------------------------------------------

Warren Brennan wrote:

> The stick bit on directories only allows you to set user/group ownership,
> but not permissions.
>
> I would love to know how to set a umask on a directory, although I do not
> believe it is possible.
>
> Cheers,
>
> Warren
>
> > -----Original Message-----
> > From: Peter Stokes [SMTP:peter at ashlyn.co.uk]
> > Sent: Thursday, July 26, 2001 7:25 AM
> > To:   sunhelp at sunhelp.org
> > Subject:      RE: [SunHELP] umask
> >
> > Hi
> >
> > Cannot remember if this is applicable, but you can set a directory with a
> > sticky bit which allows your users access where normally they would not
> > have
> > control.
> >
> > Bit vague, but may be worth checking up on.
> >
> > Peter
> > ---------------------------------
> > Peter Stokes
> > Ashlyn Computer Services Ltd
> > Tel: +44 (0)1636-627900
> > Fax: +44 (0)1636-627909
> > Mbl: +44 (0)7977-532320
> > Web: http://www.ashlyn.co.uk
> > ---------------------------------
> >
> > -----Original Message-----
> > From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On
> > Behalf Of David Baldwin
> > Sent: 25 July 2001 21:08
> > To: sunhelp at sunhelp.org
> > Subject: [SunHELP] umask
> >
> >
> >
> > Is there any way to set up file creation modes on a per directory basis,
> > for instance, /tftpboot. I would like for everything that is created in
> > /tftpboot to automagically be mode 777 but for my system wide umask to
> > stay at 0022.
> > Thanks
> > Dave
> >
> >
> >
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> >
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp




More information about the SunHELP mailing list