[SunHELP] umask
Sangbutsarakum, Patai
sunhelp at sunhelp.org
Thu Jul 26 21:07:36 CDT 2001
I've use Solaris 2.6 what's up? with permission of file.
if we use 777 minus with umask
$ umask
023
$ touch file1
$ mkdir dir1
$ ls -ald file1 dir1
drwxr-xr-- 2 patrick staffth 512 Jul 27 09:00 dir1
....[777-023= 754]
-rw-r--r-- 1 patrick staffth 0 Jul 27 09:00 file1
....[666-023=643]
Please suggest because. I've read one book that tell to me rite that
But when i test. The result isn't what suppose to be.
Regards
Patrick
-----Original Message-----
From: Christopher Smiga [mailto:csmiga at yahoo.com]
Sent: Friday, July 27, 2001 07:14
To: sunhelp at sunhelp.org
Subject: Re: [SunHELP] umask
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
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list