Bug 128405
Summary: | /usr/bin/apm --suspend and --standby can return 0 on failure | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Paul Bolle <pebolle> | ||||
Component: | apmd | Assignee: | Bill Nottingham <notting> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 2 | CC: | rvokal | ||||
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-03-16 22:26:30 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: | |||||||
Attachments: |
|
Description
Paul Bolle
2004-07-22 16:16:00 UTC
Created attachment 102149 [details]
a quick hack to end this bug
You can also fix this by installing sudo, use command visudo (as root) to add the following line to the sudoers file... %suspenders localhost = NOPASSWD: /usr/bin/apm -s anyone in the "suspenders" group can execute the following command as root. sudo /usr/bin/apm -s this is useful in interfaces also since the NOPASSWD allows execution without a password. See... %man sudoers ...for more details. 1) Ryan, thanks for commenting. However, this bug is not about getting apm to work for ordinary users, but about returning the expected value (1) when an ordinary user does run apm and causes an error. 2) I noticed that a recent version of Knoppix (3.4) included "apm version 3.2.1". It has some updates I know of: an actually working -M/--monitor option and the -M/--monitor option is even mentioned in the manpage (I haven't checked this bugzilla for those bugs ...). So it might be that this bug is fixed in apm version 3.2.1: does anyone know where I can find the Knoppix (= debian?) sources of apm(d) 3.2.1 to check that? Added in 3.2.2-1 (and it's not fixed upstream, fwiw) |