LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-17-2003, 07:10 PM   #1
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Rep: Reputation: 30
giving a user poweroff permission


im letting a friend use my laptop for a while, i did adduser, set it up, tested it out myself, went to call a poweroff, then shutdown, then reboot and commands are not found... did /sbin/poweroff and shutdown... you must be root to do this. how can i give my new user permission to shutdown the computer? ie group etc. i've gone to tldp and man useradd... no help
 
Old 07-17-2003, 07:47 PM   #2
BigBadPenguin
Member
 
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256

Rep: Reputation: 30
Goatdemon
I know sudo can help you with this, but I can't tell you exactly how it works... check out "man sudo". Sorry i can't help more, but its a start.
-bbp
 
Old 07-18-2003, 03:45 AM   #3
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware
Posts: 262

Rep: Reputation: 30
Only one answer for you: "sudo".

You can give your friend the right to shutdown your laptop with the proper entry in /etc/sudoers.

Here are a couple of articles for you, that may help you (based on FreeBSD, but should be applicable to Slackware easily):

http://www.onlamp.com/pub/a/bsd/2002...y_Daemons.html
http://www.onlamp.com/pub/a/bsd/2002...y_Daemons.html

Also, using groups may help:

http://www.onlamp.com/pub/a/bsd/2002...y_Daemons.html

Hope this helps...
 
Old 07-18-2003, 04:33 AM   #4
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
If I remember correctly, you can set something in KDM such that it will allow any user to shutdown the system via the local console.

Maybe you should look into the Login Manager for KDE (if you are using KDE).
 
Old 07-18-2003, 02:53 PM   #5
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Original Poster
Rep: Reputation: 30
thanks, ill check sudo out.
 
Old 07-18-2003, 08:30 PM   #6
BearClaw
Member
 
Registered: Jun 2003
Location: USA
Distribution: Slackware-Current
Posts: 90

Rep: Reputation: 15
This might work: Create a file called: /etc/shutdown.allow , that lists all the users who are allowed to shutdown your box.

BC
 
Old 07-18-2003, 09:06 PM   #7
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
try as root:
chmod u+s /sbin/halt
then as a regular user shutdown doing
halt

Last edited by figadiablo; 07-21-2003 at 06:45 AM.
 
Old 07-19-2003, 06:21 AM   #8
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
I think I posted a similar question before(here ) and the solution is the GDM -gnome desktop manager which is the default for slackware. In GDM you can display shutdown and reboot together with the login GUI. Try is by typing in a console 'telinit 4'.

Last edited by bongski55; 07-19-2003 at 06:39 AM.
 
  


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
giving users permission to mount a CD ricardo_ok Slackware 4 11-03-2005 12:58 PM
giving users and group permission on proftp kafnir Linux - Networking 1 06-07-2004 08:38 AM
halt or poweroff permission for users salahuddin_66 Slackware 6 04-23-2004 04:13 AM
Giving permission to /backup partition Micro420 Linux - Newbie 2 03-22-2004 06:08 PM
giving users permission to mount dai Linux - General 2 08-02-2002 02:12 AM


All times are GMT -5. The time now is 08:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration