According to the documentation for RHEL 6.5, section "3.2.1. Viewing Users and Groups" of the "Deployment Guide" states in the last paragraph that "Red Hat Enterprise Linux reserves user and group IDs below 500 for system users and groups".<br />
<br />
However on a fresh install of CentOS 6.5, the /etc/bashrc script has the following code section, which is clearly setting the wrong umask for userids between 200 and 500:<br />
<br />
# By default, we want umask to get set. This sets it for non-login shell.<br />
# Current threshold for system reserved uid/gids is 200<br />
# You could check uidgid reservation validity in<br />
# /usr/share/doc/setup-*/uidgid file<br />
if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then<br />
umask 002<br />
else<br />
umask 022<br />
fi
↧