Satellite's rhn-search index files are getting created with permissions of 777 despite shell umask of 077

Solution Verified - Updated -

Issue

  • We are getting alerts that certain files are world-writable
  • These files are the rhn-search index files in /usr/share/rhn/search/indexes
  • When recreating these files, they are getting created with permissions of 777 even though we have system umask of 077
[root@satellite indexes]# service rhn-search cleanindex
Stopping rhn-search...
Stopped rhn-search.
Starting rhn-search...
[root@satellite indexes]# ls -ltr
total 32
drwxr-xr-x 25 root root 4096 Jul 18 15:42 docs
drwxrwxrwx  2 root root 4096 Sep 26 13:44 snapshotTag
drwxrwxrwx  2 root root 4096 Sep 26 13:44 serverCustomInfo
drwxrwxrwx  2 root root 4096 Sep 26 13:44 xccdfIdent
drwxrwxrwx  2 root root 4096 Sep 26 13:44 server
drwxrwxrwx  2 root root 4096 Sep 26 13:44 hwdevice
drwxrwxrwx  2 root root 4096 Sep 26 13:44 package
drwxrwxrwx  2 root root 4096 Sep 26 13:44 errata
[root@satellite indexes]# umask
0077

Environment

  • Red Hat Satellite 5.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content