delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/02/06:27:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36DBCB67.9185FAE1@port.de>
Date: Tue, 02 Mar 1999 12:28:39 +0100
From: =?iso-8859-1?Q?Heinz=2DJ=FCrgen?= Oertel <oe AT port DOT de>
Organization: port GmbH
X-Mailer: Mozilla 4.5 [de] (Win95; I)
X-Accept-Language: en,en-US,en-GB,de,de-DE
MIME-Version: 1.0
To: Sebastien Barre <Sebastien DOT Barre AT utc DOT fr>,
Cygwin-32 <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: [HELP] stat(), file permission, r/w access : i'm LOST :(
References: <4 DOT 1 DOT 19990301232226 DOT 01717350 AT mail DOT club-internet DOT fr>
<3 DOT 0 DOT 3 DOT 32 DOT 19990301163809 DOT 00994e00 AT pop DOT ma DOT ultranet DOT com>
<4 DOT 1 DOT 19990301211226 DOT 016b1250 AT mail DOT club-internet DOT fr>
<4 DOT 1 DOT 19990301145716 DOT 017379b0 AT mail DOT club-internet DOT fr>
<36DA3AD8 DOT 2047C010 AT uni-duesseldorf DOT de>
<4 DOT 1 DOT 19990301024703 DOT 01bbe6d0 AT mail DOT club-internet DOT fr> <4 DOT 1 DOT 19990302094806 DOT 016bc410 AT mail DOT club-internet DOT fr>
X-MIME-Autoconverted: from 8bit to quoted-printable by ute.port.de id MAA21219
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id GAA01627


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 AT port DOT de
Germany              http://www.port.de
==========================================

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019