LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-04-2004, 01:55 PM   #1
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
only root can shutdown


hi,
in kde control center -> system administration -> login manager -> shutdown, i set it to allow all users to shutdown locally. still, only root can shutdown/reboot/halt...
what's wrong and how can i allow all users to shutdown/reboot/halt...?
thanks.
 
Old 07-04-2004, 03:01 PM   #2
HuMJohn
Member
 
Registered: Jun 2004
Location: California - home of Slackware
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
Re: only root can shutdown

Quote:
Originally posted by rgiggs
hi,
in kde control center -> system administration -> login manager -> shutdown, i set it to allow all users to shutdown locally. still, only root can shutdown/reboot/halt...
what's wrong and how can i allow all users to shutdown/reboot/halt...?
thanks.
Look at the man page for 'sudo' and 'sudoers'
 
Old 07-04-2004, 03:16 PM   #3
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
If you are the only user on the machine and do not have to worry about security ;-)
chmod +s /sbin/halt
 
Old 07-04-2004, 04:13 PM   #4
snop
Member
 
Registered: Aug 2003
Location: Bcn
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
To make kde shutdown for all users you must login using kdm instead of gdm (gdm is the default).

To do so you can edit /etc/rc.d/rc.4 and make the kdm part appear before the gdm one (or comment out the gdm part).

Hope this helps.

SnOp

P.D.: From kde you're probably configuring kdm this is why you can't see any effect when logging in.
 
Old 07-04-2004, 06:14 PM   #5
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
i moved the kdm stuff before gdm in /etc/rc.d/rc.4, but i still can't reboot as a normal user.
other ideas?
 
Old 07-04-2004, 06:33 PM   #6
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Code:
chmod +s /sbin/shutdown
And add /sbin to your path if not already done. If you are the only user on the machine and do not have to worry about security ;-)
 
Old 07-04-2004, 06:42 PM   #7
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
since two of you have suggested the chmod +s solution, i guess i'll go with that.
thanks.

btw:
Quote:
Originally posted by ringwraith
If you are the only user on the machine and do not have to worry about security ;-)
Quote:
Originally posted by rotvogel
If you are the only user on the machine and do not have to worry about security ;-)
you two said the exact same thing.

Last edited by rgiggs; 07-04-2004 at 06:50 PM.
 
Old 07-04-2004, 06:55 PM   #8
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
actually, chmod +s makes it so that any user can execute the command. i think it should be possible to specify that only certain non-root users can run the command, which is probablt more secure than chmod +s. if's it's possible, it'd like to know how to do it.
 
Old 07-04-2004, 07:11 PM   #9
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Create a shutdown group, change the group of these 2 commands to the newly created shutdown group, and take away world rights (750). Add users who are permitted to shutdown the machine to the shutdown group.

That's it I think.

Last edited by rotvogel; 07-04-2004 at 07:13 PM.
 
Old 07-04-2004, 08:52 PM   #10
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
i have tried that, but it didn't work. i think it makes sense that it doesn't work: we're only limiting read and exec access to these files to the user in the group (users not in the shutdown group won't have any kind of access to these files), and in the end, we're still not root. is that right or wrong?
 
  


Reply



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 can I shutdown the computer without being root? Shagrath239 Slackware 13 02-19-2005 05:53 PM
Can't shutdown as any user but root? JustinCoyan Slackware 4 06-10-2004 01:05 PM
do i have to be root to shutdown slacker?? rymdninja Slackware 4 09-26-2003 10:13 AM
Shutdown when not root? rje_NC Slackware 7 04-17-2003 11:59 PM
how to allow a not root user to shutdown ethanchic Linux - General 9 06-18-2002 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:24 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