Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st July 2005, 06:13 PM
vvukotic Offline
Registered User
 
Join Date: May 2005
Posts: 9
acpid can't sudo

Hello,

I wrote a small script for suspension that just works fine if called by root or user with sudo.
But it still won't work if called by acpid.

The /etc/acpi/events/lid.conf is:
event=button[/]lid
action=sudo /etc/acpi/actions/sleep.sh

I added to /etc/sudoers the following lines:
Host_Alias LOCALHOST=localhost
ALL LOCALHOST=NOPASSWD: /etc/acpi/actions/sleep.sh *

The script is situated in /etc/acpi/actions/sleep.sh and as i mention before works fine if called by user:
sudo /etc/acpi/actions/sleep.sh

But get the following when acpid calls it:
(logs)
[Thu Jul 21 18:56:41 2005] executing action "sudo /etc/acpi/actions/sleep.sh"
[Thu Jul 21 18:56:41 2005] BEGIN HANDLER MESSAGES
setresuid(ROOT_UID, 1, ROOT_UID): Operation not permitted
[Thu Jul 21 18:56:41 2005] END HANDLER MESSAGES
[Thu Jul 21 18:56:41 2005] action exited with status 1

Can anyone help to make it work when acpid calls it.

Thanks.
Reply With Quote
  #2  
Old 22nd July 2005, 10:27 AM
vvukotic Offline
Registered User
 
Join Date: May 2005
Posts: 9
Unhappy

Nobody knows?
Reply With Quote
Reply

Tags
acpid, sudo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get acpid events? l0vvrider Using Fedora 0 26th September 2009 04:27 PM
Disable touchpad with acpid jjleo Hardware & Laptops 1 9th December 2005 06:51 PM
ACPID question seph Hardware & Laptops 2 12th September 2004 02:22 AM
acpid not executing scripts xyklopz Hardware & Laptops 1 26th May 2004 12:21 PM


Current GMT-time: 22:36 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat