I was reading /etc/bashrc and saw the following:

# By default, we want umask to get set. This sets it for non-login shell.
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
   umask 002
   umask 022

However, my /user/share/doc directory doesn't have any directories beginning with setup:

[vagrant@rhcse-study-vm-1 ~]$ ls /usr/share/doc/setup-*
ls: cannot access /usr/share/doc/setup-*: No such file or directory

How can I find or install this documentation to look at these system uid/gid reservations? The Vagrantfile I'm using to setup this machine is here, but it's a pretty vanilla CentOS 7 box and I'm not erasing anything.


As seen in the comments to the accepted answer I had to yum reinstall setup to get the folder.

  • Any luck with find /usr/share/doc -name uidgid? – DopeGhoti Oct 25 '17 at 21:12
  • @DopeGhoti Nada, nor from the root dir either – Ben Oct 25 '17 at 21:15

The most probably you don't have the RPM package 'setup' installed on your system. The mentioned file is provided by this package.

For example in case of setup-2.8.71-7.el7.noarch.rpm it is:

|improve this answer|||||
  • Package setup-2.8.71-7.el7.noarch already installed and latest version, and it's not there – Ben Oct 25 '17 at 21:49
  • 1
    Then there is some problem with your image. I can see the file on my system and it's also listed when you search for the uidgid file on the rpm.pbone.net. Try 'yum reinstall setup'. – Jaroslav Kucera Oct 25 '17 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.