Bug 1417185 - Mode permissions for /etc/sysconfig/rhn/up2date were changed after registration
Summary: Mode permissions for /etc/sysconfig/rhn/up2date were changed after registration
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.9
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
Depends On:
Blocks: 1504706
TreeView+ depends on / blocked
Reported: 2017-01-27 12:50 UTC by Pavel Studeník
Modified: 2018-06-19 05:14 UTC (History)
4 users (show)

Fixed In Version: rhn-client-tools-
Doc Type: Bug Fix
Doc Text:
Default mode permissions of file /etc/sysconfig/rhn/up2date from freshly installed packages is 644. but after registration to Satellite 5 the mode permissions of the file were changed to 600. This has been fixed and permissions of the /etc/sysconfig/rhn/up2date are no longer changed during registration.
Clone Of:
Last Closed: 2018-06-19 05:14:05 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1878 0 None None None 2018-06-19 05:14:21 UTC

Description Pavel Studeník 2017-01-27 12:50:15 UTC
Description of problem:
Default mode permissions of file up2date from new installed packages is 644. but after registration to Satellite 5 the mode permissions of the file were changed to 600.

I am not sure what is correct mode, everyone can read this file or not. But the permissions should be same after registration. 

And default configure file up2date doesn't contain following default options that were added after registration to ../up2date

proxyPassword[comment]=The password to use for an authenticated proxy

enableProxyAuth[comment]=To use an authenticated proxy or not

proxyUser[comment]=The username for an authenticated proxy

File /etc/sysconfig/rhn/systemid has set 600 mode and I guess that it is good, because it contains ID of system.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. rm /etc/sysconfig/rhn/*
2. yum reinstall rhn-client rhn-setup rhn-check
3. ll -Z /etc/sysconfig/rhn/up2date 
-rw-r--r--. root root system_u:object_r:rhnsd_conf_t:s0 /etc/sysconfig/rhn/up2date
4. rhnreg_ks ..
5. ll -Z /etc/sysconfig/rhn/up2date 
-rw-------. root root system_u:object_r:rhnsd_conf_t:s0 /etc/sysconfig/rhn/up2date
6. rpm -V rhn-client-tools-
.M.......  c /etc/sysconfig/rhn/up2date

Actual results:
mode permissions were changed 
644 -> 600

missing defaults values in configure file

Expected results:
mode permissions are equal 

default ../rhn/up2date contains all default configurations

Comment 2 Pavel Studeník 2017-01-27 13:24:24 UTC
On RHEL 7 the permissions were not changed and they stay same.


-rw-r--r--. root root system_u:object_r:rhnsd_conf_t:s0 /etc/sysconfig/rhn/up2date

-rw-------. root root unconfined_u:object_r:rhnsd_conf_t:s0 systemid
-rw-r--r--. root root unconfined_u:object_r:rhnsd_conf_t:s0 up2date

Comment 4 Tomáš Kašpárek 2017-12-13 10:19:50 UTC
spacewalk.git(master): 035d38ff1daab34e2c69d74b11a7e997dbfe9b1c
spacewalk.git(master): 68020907608f8bbf3e0c3de1cf04e7c36f8ae8ed

Comment 5 Pavel Studeník 2017-12-13 11:26:16 UTC
Right. I suppose that it is not regression for RHEL6. (6.8, 6.9)

>> ll /etc/sysconfig/rhn/up2date
-rw-------. 1 root root 2042 Dec 12 19:26 /etc/sysconfig/rhn/up2date

>> rpm -V rhn-client-tools
.M.......  c /etc/sysconfig/rhn/up2date
>> rpm -q rhn-client-tools

Comment 8 Martin Korbel 2018-01-05 10:33:51 UTC
VERIFIED on rhn-client-tools-

Reproducer via comment 0

Comment 11 errata-xmlrpc 2018-06-19 05:14:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.