From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heinz-Jürgen Oertel To: Sebastien Barre , Cygwin-32 Subject: Re: [HELP] stat(), file permission, r/w access : i'm LOST :( Date: Tue, 02 Mar 1999 03:26:00 -0000 Message-id: <36DBCB67.9185FAE1@port.de> References: <4.1.19990301232226.01717350@mail.club-internet.fr> <3.0.3.32.19990301163809.00994e00@pop.ma.ultranet.com> <4.1.19990301211226.016b1250@mail.club-internet.fr> <4.1.19990301145716.017379b0@mail.club-internet.fr> <36DA3AD8.2047C010@uni-duesseldorf.de> <4.1.19990301024703.01bbe6d0@mail.club-internet.fr> <4.1.19990302094806.016bc410@mail.club-internet.fr> X-SW-Source: 1999-03/msg00022.html Sebastien Barre schrieb: > > At 17:43 01/03/99 -0500, you wrote: > > > That sounds interesting, could you please be more specific, I'm not exactly > a umask guru, and I have no man page. Thanks a lot for any help. > umask [-S] [mask] Display or set the file permission creation mask, or umask (see umask(2)). If the -S option is used, the mask displayed or set is symbolic, otherwise it is an octal number. Symbolic masks are like those used by chmod(1): [ugoa]{{=+-}{rwx}*}+[,...] in which the first group of characters is the who part, the second group is the op part, and the last group is the perm part. The who part specifies which part of the umask is to be modified. The letters mean: u the user permissions g the group permissions o the other permissions (non-user, non-group) a all permissions (user, group and other) The op part indicates how the who permissions are to be modified: = set + added to - removed from The perm part specifies which permissions are to be set, added or removed: r read permission w write permission x execute permission When symbolic masks are used, they describe what permissions may be made available (as opposed to octal masks in which a set bit means the corre­ sponding bit is to be cleared). Example: `ug=rwx,o=' sets the mask so files will not be readable, writable or executable by `others', and is equivalent (on most systems) to the octal mask `07'. -- with best regards / mit freundlichen Grüßen Heinz-Jürgen Oertel ========================================== Heinz-Juergen Oertel port GmbH phone +49 3493 743-10 Antonienstr. 3 fax +49 3493 743-15 D-06749 Bitterfeld mailto:service@port.de Germany http://www.port.de ========================================== -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heinz-Jürgen Oertel To: Sebastien Barre , Cygwin-32 Subject: Re: [HELP] stat(), file permission, r/w access : i'm LOST :( Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <36DBCB67.9185FAE1@port.de> References: <4.1.19990301232226.01717350@mail.club-internet.fr> <3.0.3.32.19990301163809.00994e00@pop.ma.ultranet.com> <4.1.19990301211226.016b1250@mail.club-internet.fr> <4.1.19990301145716.017379b0@mail.club-internet.fr> <36DA3AD8.2047C010@uni-duesseldorf.de> <4.1.19990301024703.01bbe6d0@mail.club-internet.fr> <4.1.19990302094806.016bc410@mail.club-internet.fr> X-SW-Source: 1999-03n/msg00022.html Message-ID: <19990331194500.c1eSun27Oazir4ewP-Q-smVGRM08V-0ejAsXMdXXV7Q@z> Sebastien Barre schrieb: > > At 17:43 01/03/99 -0500, you wrote: > > > That sounds interesting, could you please be more specific, I'm not exactly > a umask guru, and I have no man page. Thanks a lot for any help. > umask [-S] [mask] Display or set the file permission creation mask, or umask (see umask(2)). If the -S option is used, the mask displayed or set is symbolic, otherwise it is an octal number. Symbolic masks are like those used by chmod(1): [ugoa]{{=+-}{rwx}*}+[,...] in which the first group of characters is the who part, the second group is the op part, and the last group is the perm part. The who part specifies which part of the umask is to be modified. The letters mean: u the user permissions g the group permissions o the other permissions (non-user, non-group) a all permissions (user, group and other) The op part indicates how the who permissions are to be modified: = set + added to - removed from The perm part specifies which permissions are to be set, added or removed: r read permission w write permission x execute permission When symbolic masks are used, they describe what permissions may be made available (as opposed to octal masks in which a set bit means the corre­ sponding bit is to be cleared). Example: `ug=rwx,o=' sets the mask so files will not be readable, writable or executable by `others', and is equivalent (on most systems) to the octal mask `07'. -- with best regards / mit freundlichen Grüßen Heinz-Jürgen Oertel ========================================== Heinz-Juergen Oertel port GmbH phone +49 3493 743-10 Antonienstr. 3 fax +49 3493 743-15 D-06749 Bitterfeld mailto:service@port.de Germany http://www.port.de ========================================== -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com