Re: [gpm] Aha! its a permission problem!



On Sat, 2006-06-10 at 15:31 -0500, Paul Johnson wrote:
> I just realized that /usr/sbin/pm-suspend worked with current Utopia
> rpms, but only when logged in as root.  Here's what happens to the
> ordinary user.

Yes, this is due to the new pm-utils design (no console helper).

> $ pm-suspend
> bash: pm-suspend: command not found
> [pauljohn pols125 ~]$ /usr/sbin/pm-suspend
> chvt: VT_ACTIVATE: Operation not permitted
> /etc/pm/functions: line 43: /.suspended: Permission denied
> touch: cannot touch `/var/run/pm-suspend': Permission denied
> /etc/pm/functions: line 100: pm-pmu: command not found
> /etc/pm/functions: line 100: /sys/power/state: Permission denied
> chvt: VT_ACTIVATE: Operation not permitted
> chvt: VT_ACTIVATE: Operation not permitted

We should probably clean that up when the user tries, something like
"You need to be the root user" -- HAL is running as root, so that
shouldn't be a problem.

Richard.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]