Jim Meyering
2011-Apr-13 11:10 UTC
[Libguestfs] root use of yum (given "umask 077") causes build trouble
FYI,
[cc'ing the yum list, because yum may want to make the permissions
of certain files it creates be independent of root's umask ]
When I do things as root, I have umask set to 077.
That appears to have led yum to set the permissions on all files in
/var/lib/yum/rpmdb-indexes/ to -rw-------.
That in turn makes commands run by non-root like "yum info libvirt"
fail,
and it also makes libguestfs' build process fail like this:
febootstrap: external python program failed, see earlier error messages
The previous error it's referring to appears to be this:
IOError: [Errno 13] Permission denied:
'//var/lib/yum/rpmdb-indexes/version'
I've just run this command (as root),
chmod go+r /var/lib/yum/rpmdb-indexes/*
the libguestfs build was finally able to complete.
And "yum info ..." became usable again.
This is on Fedora 15.
Seemingly Similar Threads
- ssh disregarding umask for creation of known_hosts (and other files?)
- File permission umask howto?
- A Couple Of Issues (APOP Causes Auth SIGSEGV, Umask Setting Ineffective)
- CentOS-6.7 problem updating kernel
- [PATCH] btrfs: honor umask when creating subvol root
