This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 233906 - pm-utils: unowned directories
pm-utils: unowned directories
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: pm-utils (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
: EasyFix, Reopened
: 239600 (view as bug list)
Depends On:
Blocks: 226302
  Show dependency treegraph
 
Reported: 2007-03-25 14:11 EDT by Michael Schwendt
Modified: 2015-03-04 20:18 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-30 12:53:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Michael Schwendt 2007-03-25 14:11:39 EDT
=> pm-utils - 0.99.2-1.fc7.i386
/etc/pm
/usr/lib/pm-utils
/usr/lib/pm-utils/bin
/usr/lib/pm-utils/sleep.d
/usr/lib/pm-utils/power.d
Comment 1 Till Maas 2007-07-04 18:37:14 EDT
*** Bug 239600 has been marked as a duplicate of this bug. ***
Comment 2 Till Maas 2007-08-30 11:54:18 EDT
committed to cvs for devel
Comment 3 Michael Schwendt 2007-08-30 12:29:18 EDT
You must not own /usr/lib, but /usr/lib/pm-utils

With %dir %{_exec_prefix}/lib/pm-utils/
or by including the directory recursively:

--- pm-utils.spec.~1.70.~       2007-08-30 17:53:43.000000000 +0200
+++ pm-utils.spec       2007-08-30 18:30:00.000000000 +0200
@@ -144,12 +144,7 @@
 %{_sysconfdir}/pm/
 %{_sysconfdir}/security/console.apps/*
 %{_sysconfdir}/pam.d/*
-%dir %{_exec_prefix}/lib/
-%{_exec_prefix}/lib/pm-utils/bin/*
-%{_exec_prefix}/lib/pm-utils/defaults
-%{_exec_prefix}/lib/pm-utils/functions
-%{_exec_prefix}/lib/pm-utils/power.d/*
-%{_exec_prefix}/lib/pm-utils/sleep.d/*
+%{_exec_prefix}/lib/pm-utils/
 %{_bindir}/*
 %{_sbindir}/pm-hibernate
 %{_sbindir}/pm-powersave
Comment 4 Michael Schwendt 2007-08-30 12:32:26 EDT
And, of course, all these directories are unowned:

/etc/pm
/usr/lib/pm-utils
/usr/lib/pm-utils/bin
/usr/lib/pm-utils/sleep.d
/usr/lib/pm-utils/power.d

So, above patch plus

%dir %{_sysconfdir}/pm

are the full fix. Without the patch you would need:

%dir /etc/pm
%dir /usr/lib/pm-utils
%dir /usr/lib/pm-utils/bin
%dir /usr/lib/pm-utils/sleep.d
%dir /usr/lib/pm-utils/power.d

Query "rpm -qlvp pm-utils*.i386.rpm" and check the directory entries.
Comment 5 Till Maas 2007-08-30 12:53:26 EDT
(In reply to comment #3)
> You must not own /usr/lib, but /usr/lib/pm-utils

oh, yes, I somehow forgot to add pm-utils in the regarding line. I now commited
changes to cvs that should be correct.

$ rpm -qlvp pm-utils-0.99.3-12.fc8.i386.rpm  | egrep  ^d
drwxr-xr-x    2 root    root                0 Aug 30 18:41 /etc/pm
drwxr-xr-x    2 root    root                0 Aug 30 18:41 /etc/pm/config.d
drwxr-xr-x    2 root    root                0 Aug 30 18:41 /etc/pm/power.d
drwxr-xr-x    2 root    root                0 Aug 30 18:41 /etc/pm/sleep.d
drwxr-xr-x    2 root    root                0 Aug 30 18:41 /usr/lib/pm-utils
drwxr-xr-x    2 root    root                0 Aug 30 18:42 /usr/lib/pm-utils/bin
drwxr-xr-x    2 root    root                0 Aug 30 18:41 /usr/lib/pm-utils/power.d
drwxr-xr-x    2 root    root                0 Aug 30 18:41 /usr/lib/pm-utils/sleep.d

Comment 6 Michael Schwendt 2007-08-30 14:12:33 EDT
> %dir %{_exec_prefix}/lib/pm-utils/
> %{_exec_prefix}/lib/pm-utils/bin/
> %{_exec_prefix}/lib/pm-utils/defaults
> %{_exec_prefix}/lib/pm-utils/functions
> %{_exec_prefix}/lib/pm-utils/power.d/
> %{_exec_prefix}/lib/pm-utils/sleep.d/

Well, if the package ever wanted to put files directly into
%{_exec_prefix}/lib/pm-utils/ you would need to rewrite above
lines again.
Comment 7 Till Maas 2007-08-30 15:20:55 EDT
(In reply to comment #6)

> Well, if the package ever wanted to put files directly into
> %{_exec_prefix}/lib/pm-utils/ you would need to rewrite above
> lines again.

I only have to add them, e.g.  

> %{_exec_prefix}/lib/pm-utils/defaults
> %{_exec_prefix}/lib/pm-utils/functions

are already files.

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