umask problem with yum/rpm?

Mikkel L. Ellertson mikkel at infinity-ltd.com
Tue Oct 7 16:27:31 UTC 2008


David Jansen wrote:
> Am I missing something, or is this a bug in either yum or rpm (on Fedora
> 8):
> 
> Root's umask is set to 077, so files created by root are by default only
> readable by root. Safest setting, so quite ok.
> Now root runs an rpm or yum command to install or update files. Umask
> setting is not used for the files extracted from the rpm, those get the
> permissions as stored inside the package. But root's umask appears to be
> in effect for the scripts that run from the rpm.
> 
> Most notably: various files in /usr/share/mime become inaccessibel to
> normal users after root manually installs updates. Similarly, after the
> last update of tetex, files like /usr/share/texmf/ls-R were only
> readable for root.
> 
> Updates installed through the cron jobs, yum-updatesd, don't seem to
> suffer from this problem.
> 
I think where you are running into problems is the difference
between root's environment when you log in, and the environment when
cron jobs are run. Remember, when executing a cron job, none of the
login scripts are run.

You will also find that some RPMs set the permissions of files
regardless of the umask.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081007/52e38b50/attachment-0001.sig>


More information about the fedora-list mailing list