Mailinglist Archive: opensuse (3397 mails)
| < Previous | Next > |
Re: [SLE] Alert
- From: Jerry Feldman <gaf@xxxxxxx>
- Date: Tue, 26 Apr 2005 13:54:10 -0400
- Message-id: <200504261354.10353.gaf@xxxxxxx>
On Tuesday 26 April 2005 1:37 pm, Erik Jakobsen wrote:
> Hi Ken. If I say that I understand it its not the true. Maybe first of
> all because I'm still not
> quite sure on what umask does, but will read what Randall wrote to me.
>
> How can for instance 000 be equal to 666 ?. Not that I say, that I doubt
> what You tell me, but I
> myself am not sure on how ?.
First, umask is a shell builtin.
You can use symbolic notation when you set your umask:
For instance:
umask u=rwx,g=rx,o=rx
is equivalent to:
umask 0022
Remember umask is in Octal bits,
the first 3 refer to user, second 3 to group, third to others.
0022 means that when creating a file, the rw bits will be turned on for the
user field, read for both others and group.
The execute bits come into play when creating directories.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
> Hi Ken. If I say that I understand it its not the true. Maybe first of
> all because I'm still not
> quite sure on what umask does, but will read what Randall wrote to me.
>
> How can for instance 000 be equal to 666 ?. Not that I say, that I doubt
> what You tell me, but I
> myself am not sure on how ?.
First, umask is a shell builtin.
You can use symbolic notation when you set your umask:
For instance:
umask u=rwx,g=rx,o=rx
is equivalent to:
umask 0022
Remember umask is in Octal bits,
the first 3 refer to user, second 3 to group, third to others.
0022 means that when creating a file, the rw bits will be turned on for the
user field, read for both others and group.
The execute bits come into play when creating directories.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
| < Previous | Next > |