Bug 141123

Summary: the file permissions and ownerships of /etc/ups/* are confusing
Product: [Fedora] Fedora Reporter: feily
Component: nutAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-20 15:05:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description feily 2004-11-29 15:03:03 UTC
Description of problem:
the file permissions and ownerships are confusing:

[pt@server1 ups]$ ls -l /etc/ups
total 48
-rw-r--r--  1 root root  3724 Nov 22 17:26 ups.conf
-rw-r--r--  1 root root  1364 Oct  5 17:11 upsd.conf
-rw-r-----  1 root nut   2277 Nov 22 17:26 upsd.users
-r--------  1 nut  nut  11170 Nov 22 17:27 upsmon.conf
-r--------  1 nut  nut   3884 Oct  5 17:11 upssched.conf

Why should the owner of upsmon.conf and upssched.conf not be able to
write to them? He can anyway. Why is upsd.users owned by root and in
group nut? Why is ups.conf and upsd.conf owned by root and upsmon.conf
+ upssched.conf by nut?
If the user rights and ownerships are intentionally like they are,
sorry for this bug report.

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

Comment 1 Than Ngo 2005-07-20 15:05:33 UTC
I have cleaned up the file permissons. Alle the config files should have
root as owner, nut as group and permission 640.

The new nut-2.0.2-1 includes now the fix and will be available in rawhide soon
Many thanks for your report.