Mailinglist Archive: opensuse (3397 mails)

< Previous Next >
Re: [SLE] Alert
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Tue, 26 Apr 2005 21:19:03 +0200
  • Message-id: <200504262119.03507.andjoh@xxxxxxxxxx>
On Tuesday 26 April 2005 21:01, Randall R Schulz wrote:
> Ken,
>
> On Tuesday 26 April 2005 11:30, Ken Schneider wrote:
> > > ...
> >
> > umask actually subtracts from what would be full access.
>
> Actually, it subtracts from the mode supplied by the program that is
> issuing the system call to create the file.

Or to be absolutely accurate, it doesn't subtract, it does a logical and
between the desired permissions and the inversion of the umask

if you have an umask of 222 and you try to create a file with mode 444, that
doesn't give you (through subtraction) 222, it gives you 444 & 555 = 444.

< Previous Next >