Re: what is umask?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Osman wrote:
> Dear Member what is umask?
> and what is the relationship between umask and the file permission

umask identifies (to the kernel) which file permission bits you /don't/
want to be set. If a program sets those bits, the umask will unset them.

For instance, if you have a program that always creates it's output file
with
u=rw,g=rw,o=rw (666)
and you /don't/ want "group write" or "other write" permissions to be
set, you would set your umask to
umask 022 (g=w,o=w)
and that would ensure that any file created by processes that inherit
the umask do /not/ set the "group write" or "other write" permission bits.


- --

Lew Pitcher, IT Specialist, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFDlfvAagVFX4UWr64RAi3GAJ9nNzfMIVLP/OHY406ax1s2NATLrQCfS2pY
5iAxRcH+6xivPBvEhpWt+Lk=
=5pBg
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Setting Default File Permissions on Server for Use with Secure FTP
    ... When users transfer files to the server using Secure FTP, ... the default file permission when using SFTP set to '755'. ... to 'umask 022'. ... Placing 'umask 022' in /etc/ssh2/ssh2_config ...
    (comp.security.ssh)
  • Umask strange behaviour 555=444 ?
    ... Why is umaks 654 and 644 returning the same file permission? ... would not be allowed for common files. ... why would umaks 555 produce the same result as umask 444 ?? ...
    (comp.os.linux.misc)
  • Re: what is umask?
    ... > Dear Member what is umask? ... > and what is the relationship between umask and the file permission ...
    (comp.os.linux.misc)
  • what is umask?
    ... Dear Member what is umask? ... and what is the relationship between umask and the file permission ... thanks for your attention ... Prev by Date: ...
    (comp.os.linux.misc)
  • Re: what is umask?
    ... >>Dear Member what is umask? ... > Umask dictates the default permissions given to newly created files. ... Lew Pitcher, IT Specialist, Enterprise Data Systems ...
    (comp.os.linux.misc)