Bug 141123 - the file permissions and ownerships of /etc/ups/* are confusing
Summary: the file permissions and ownerships of /etc/ups/* are confusing
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nut
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-29 15:03 UTC by feily
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-07-20 15:05:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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