LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-27-2003, 11:06 AM   #1
Bagleemo
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Rep: Reputation: 0
How to give user permission to suspend with apm


Greetings -

I have Red Hat 9.0 running on my Dell Latitude Laptop. I've worked out most of the bugs except this easy one:

Every time I suspend or standby, I have to open a terminal, log in as root, and then type

apm --suspend

or -- standby.

I'd like to just have those be options in the shutdown dialog, or else buttons / shortcuts in my toolbar. But since root is the only user with permission to do these things, it seems this would be difficult.

Any suggestions?

Thanks,

Amos
 
Old 12-27-2003, 12:18 PM   #2
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
install/configure sudo
add them with no password at the end of the sudoers file using visudo.

thats what i do here with the /sbin/shutdown -h command using apci.
 
Old 12-27-2003, 01:10 PM   #3
Bagleemo
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I see... sudo is handy.

Hi - Thanks for the tip.

That did in fact work, after finding out how to setup sudo properly.

For the record, I found the program visudo, ran it, and added the following line at the bottom of the file:

username computername = NOPASSWD: /usr/bin/apm

And now I have a simple launcher that just has this command to put my laptop to sleep.

sudo apm --suspend

Thanks for the help!

-Amos
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 08:45 PM
apm and console suspend linuxhippy Slackware 13 07-04-2005 01:46 PM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM
apm suspend-to-disk m00t00 Linux - Laptop and Netbook 0 11-24-2004 03:21 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration