[NTLUG:Discuss] force group ownership
Bug Hunter
bughuntr at one.ctelcom.net
Thu Jan 31 21:31:28 CST 2002
On Thu, 31 Jan 2002, Bobby Wrenn wrote:
> I think these are the relavant snips for /etc/profile
>
> ##### Handle by Mandrake Security
> #if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
> # umask 002
> #else
> # umask 022
> #fi
>
> appears to be all comments. Which I would uncomment except for this at
> the end of the file
>
> # Mandrake-Security : if you remove this comment, remove the next line
> too.
> umask 022
>
> What do these numbers mean?
when you create a file, it has a default set of permissions. The umask
variable is applied to the default set of permissions at that time. This
allows you to cause files created by you to have a different set of
permissions.
In other words, you can make it so only you can read files you create,
by default.
man umask
More information about the Discuss
mailing list