/etc/bashrc umask

Hi,

I got this redhat ent 4 assigned to me now.

/etc/bashrc

if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 022
else
umask 077
fi

What does it mean?

I created already three user and it never had 022 umask, always 077.

Thank you in advance.

One more thing

How can I find a file with a umask of 022? What kind of command should I do?

Or this is not possible.

Thanks.

umask sets the default file creation mask.
So, 022 would mean no write access for group or others (everyone).

A 077 would mean no read or write or execute access for group and others.

To find files the result of this... possible by an awk with selection criteria, but not sure if fool-proof, and what it would give you as meaningful output. (The files did not have to be the result of this umask, could be that way anyway.)

I figure this out myself, if user and group are the same and userid is greater than 99 then it will use umask 022...

which most of the system userid have the same user name and group name but less than 99 on the userid, so they are not included.

The only one I've seen on my user list is the nfsnobody with the same name and group and the userid is 4294967294. So this is intended for this user.

But how does nfsnobody login to the server? And I don't think that nfs services is ON on my system.

Any idea? Or maybe it's nfs and umask need to be 022. Able to read by others.

Thanks.