Quantcast
Channel: CentOS Bug Tracker - Issues
Viewing all articles
Browse latest Browse all 19115

0007106: Faulty check in /etc/bashrc script may set the wrong umask for UIDs between 200 and 500

$
0
0
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

Viewing all articles
Browse latest Browse all 19115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>