Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2003 20:25:15 +0200
From:      Antoine Jacoutot <ajacoutot@lphp.org>
To:        Joshua Oreman <oremanj@get-linux.org>
Cc:        questions@freebsd.org
Subject:   Re: umask
Message-ID:  <200308142025.18512.ajacoutot@lphp.org>
In-Reply-To: <20030814181947.GC8728@webserver>
References:  <200308141542.40587.ajacoutot@lphp.org> <20030814181947.GC8728@webserver>

next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 14 August 2003 20:19, Joshua Oreman wrote:
> 066 will be *more* secure than 022.

I know that :)

> This is because a umask is deducted from the default permission bits of 6=
66
> (or 777 for executables) on new files. So a umask of 022 will cause new
> files to have a mode of 600 or 711.

Yes I know, I was just wondering why the default behaviour was not very=20
secure.

> * 077  (600 or 700 -- most secure)

So, if I set umask to 077, this is OK, right ? Is there ANY cons ?

Thanks a lot for your answer Joshua.

Antoine
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/O9QOY3Hnhkr+5cQRAnI6AJ4r4/ChIy/cDAqv2ZHrBCnDu2HotACeK5jx
CBnqmfxoTPvdT4rZIUs8s0U=3D
=3Dsw1f
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308142025.18512.ajacoutot>