Re: shutdown/halt as user

2002-02-18 Thread Michael C. Alonzo
On Thu, Feb 14, 2002 at 01:30:01PM -0800, David Wright wrote: How can I let a normal user use the halt or shutdown command? All the responses to this query have been ugly hacks. The right way to do this this (put on flame-retardant suit here) is the way RedHat does: make the halt binary

Re: shutdown/halt as user

2002-02-18 Thread Alex Malinovich
On Mon, 2002-02-18 at 07:28, Michael C. Alonzo wrote: How can I let a normal user use the halt or shutdown command? snip I use super. :) If you happen to be running GDM (I think KDM allows this as well) you can set it up to put the shutdown and reboot commands on the login screen, thereby

Re: [Fwd: Re: shutdown/halt as user]

2002-02-18 Thread Jason Ramey
Yes, that was why i picked pico specifically, because it doesn't allow for arbitrary shell commands. I made the mistake of initially giving them access to VI ;-D Great idea tho, i'll look into a script like that. On Wed, 2002-02-13 at 20:04, Anthony DeRobertis wrote: On Wednesday, February

Re: shutdown/halt as user

2002-02-16 Thread Dimitri Maziuk
* Eric G. Miller (egm2@jps.net) spake thusly: On Fri, Feb 15, 2002 at 07:26:29PM -0600, Dimitri Maziuk wrote: * Mark Ferlatte ([EMAIL PROTECTED]) spake thusly: On Sat, Feb 16, 2002 at 08:05:19AM +0800, csj wrote (0.28): Anybody has the formula for using the power button to shut down the

Re: shutdown/halt as user

2002-02-15 Thread Romuald DELAVERGNE
Le 2002.02.15 02:29, Bob Thibodeau a écrit : It's more secure than suid, but anyone with physical access to the machine can stop it. Anyway, someone with physical access can poweroff the machine :-)

Re: shutdown/halt as user

2002-02-15 Thread Bob Thibodeau
On Fri, Feb 15, 2002 at 09:49:34AM +0100, Romuald DELAVERGNE wrote: Le 2002.02.15 02:29, Bob Thibodeau a ?crit : It's more secure than suid, but anyone with physical access to the machine can stop it. Anyway, someone with physical access can poweroff the machine :-) Agreed, it's a pretty

Re: shutdown/halt as user

2002-02-15 Thread Miquel van Smoorenburg
According to David Wright: Stuff like this doesn't belong in sysvinit. It belongs in an optional package that can call shutdown, not in shutdown itself. Let alone in the halt binary! Fine, I wouldn't object. But I would point out that (1) you don't loose any modularity with a pam

Re: shutdown/halt as user

2002-02-15 Thread David Roundy
On Fri, Feb 15, 2002 at 11:05:27AM +0100, Miquel van Smoorenburg wrote: According to David Wright: Stuff like this doesn't belong in sysvinit. It belongs in an optional package that can call shutdown, not in shutdown itself. Let alone in the halt binary! Fine, I wouldn't object.

Re: shutdown/halt as user

2002-02-15 Thread Miquel van Smoorenburg
to do shutdown/halt/reboot, write a setuid wrapper program. Mike. -- Computers are useless, they only give answers. --Pablo Picasso

Re: shutdown/halt as user

2002-02-15 Thread Dimitri Maziuk
* David Wright ([EMAIL PROTECTED]) spake thusly: Now, would you like /sbin/halt to also show a Are you really really sure (Abort/Ignore/Retry/Fail)? dialog a few times and then count to 10 (so we could press ^C) before doing telinit 0? I thought I said that... If the sysadmin wants his

Re: shutdown/halt as user

2002-02-15 Thread Dimitri Maziuk
* Dimitri Maziuk ([EMAIL PROTECTED]) spake thusly: .. At least, listen to Manoj Errm, sorry, I think it was Miguel... nevermind. Dima -- Backwards compatibility is either a pun or an oxymoron. -- PGN

Re: shutdown/halt as user

2002-02-15 Thread Dimitri Maziuk
* David Roundy ([EMAIL PROTECTED]) spake thusly: ... I would want to make it so that shutdown can only be run by users on the console (or root, perhaps). But... but... but... FX src=terminatorThat's what it does!/FX Dima -- Backwards compatibility is either a pun or an oxymoron.

Re: shutdown/halt as user

2002-02-15 Thread csj
On Fri, Feb 15, 2002 at 04:56:33AM -0500, Bob Thibodeau wrote: On Fri, Feb 15, 2002 at 09:49:34AM +0100, Romuald DELAVERGNE wrote: Le 2002.02.15 02:29, Bob Thibodeau a ?crit : It's more secure than suid, but anyone with physical access to the machine can stop it. Anyway, someone with

Re: shutdown/halt as user

2002-02-15 Thread Mark Ferlatte
On Sat, Feb 16, 2002 at 08:05:19AM +0800, csj wrote (0.28): Anybody has the formula for using the power button to shut down the machine? I got this to work using the ACPI driver in 2.4, and acpid (Debian package). acpid worked out of the box, once I got the apropriate acpi kernel drivers

Re: shutdown/halt as user

2002-02-15 Thread Dimitri Maziuk
* Mark Ferlatte ([EMAIL PROTECTED]) spake thusly: On Sat, Feb 16, 2002 at 08:05:19AM +0800, csj wrote (0.28): Anybody has the formula for using the power button to shut down the machine? I got this to work using the ACPI driver in 2.4, and acpid (Debian package). acpid worked out of the

Re: shutdown/halt as user

2002-02-15 Thread Eric G. Miller
On Fri, Feb 15, 2002 at 07:26:29PM -0600, Dimitri Maziuk wrote: * Mark Ferlatte ([EMAIL PROTECTED]) spake thusly: On Sat, Feb 16, 2002 at 08:05:19AM +0800, csj wrote (0.28): Anybody has the formula for using the power button to shut down the machine? I got this to work using the ACPI

Re: shutdown/halt as user

2002-02-14 Thread David Wright
How can I let a normal user use the halt or shutdown command? All the responses to this query have been ugly hacks. The right way to do this this (put on flame-retardant suit here) is the way RedHat does: make the halt binary call up pam for authenticaton and authorization and allow the

Re: shutdown/halt as user

2002-02-14 Thread Shawn Lamson
--- David Wright [EMAIL PROTECTED] wrote: How can I let a normal user use the halt or shutdown command? All the responses to this query have been ugly hacks. The right way to do this this (put on flame-retardant suit here) is the way RedHat does: make the halt binary call up pam for

Re: shutdown/halt as user

2002-02-14 Thread Dimitri Maziuk
* David Wright ([EMAIL PROTECTED]) spake thusly: How can I let a normal user use the halt or shutdown command? All the responses to this query have been ugly hacks. The right way to do this this (put on flame-retardant suit here) is the way RedHat does: make the halt binary call up pam

Re: shutdown/halt as user

2002-02-14 Thread Vineet Kumar
* David Wright ([EMAIL PROTECTED]) [020214 13:58]: How can I let a normal user use the halt or shutdown command? All the responses to this query have been ugly hacks. The right way to do this this (put on flame-retardant suit here) is the way RedHat does: make the halt binary call up

Re: shutdown/halt as user

2002-02-14 Thread Bob Thibodeau
Quoting Vineet Kumar [EMAIL PROTECTED]: I have ctrl-alt-del set up for shutdown (reboot) and ctrl-alt-end for halt I think that's done in /etc/inittab When I get home I'll cut it out and send it if no one lese has It's more secure than suid, but anyone with physical access to the machine can

Re: shutdown/halt as user

2002-02-14 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Vineet Kumar [EMAIL PROTECTED] wrote: * David Wright ([EMAIL PROTECTED]) [020214 13:58]: How can I let a normal user use the halt or shutdown command? All the responses to this query have been ugly hacks. The right way to do this this (put on flame-retardant

Re: shutdown/halt as user

2002-02-14 Thread David Wright
Now, would you like /sbin/halt to also show a Are you really really sure (Abort/Ignore/Retry/Fail)? dialog a few times and then count to 10 (so we could press ^C) before doing telinit 0? If the sysadmin wants his users to go through this: yes, that's exactly what I want. If he wants his

Re: shutdown/halt as user

2002-02-14 Thread David Wright
Stuff like this doesn't belong in sysvinit. It belongs in an optional package that can call shutdown, not in shutdown itself. Let alone in the halt binary! Fine, I wouldn't object. But I would point out that (1) you don't loose any modularity with a pam layer, since you can configure pam

shutdown/halt as user

2002-02-13 Thread Hans
How can I let a normal user use the halt or shutdown command? I need this for the remote control of my TV box. I tried changing permissions, but that didn't help. --Hans

Re: shutdown/halt as user

2002-02-13 Thread Chris Hilts
On Wed, Feb 13, 2002 at 07:30:05PM +0100, Hans wrote: How can I let a normal user use the halt or shutdown command? I need Try using 'sudo'. You'll have to edit the sudoers file though. Chris Hilts [EMAIL PROTECTED]

Re: shutdown/halt as user

2002-02-13 Thread Hans
But with sudo you will still have to enter a password afaik and that's kind of difficult with remote control. --Hans At 01:25 PM 2/13/02 -0500, Chris Hilts wrote: On Wed, Feb 13, 2002 at 07:30:05PM +0100, Hans wrote: How can I let a normal user use the halt or shutdown command? I need Try using

Re: shutdown/halt as user

2002-02-13 Thread Chris Hilts
On Wed, Feb 13, 2002 at 07:37:06PM +0100, Hans wrote: But with sudo you will still have to enter a password afaik and that's kind of difficult with remote control. --Hans That is incorrect. There is an option which allows the password prompt to be skipped. (man sudoers - I'd use it with care,

[Fwd: Re: shutdown/halt as user]

2002-02-13 Thread Jason Ramey
correct, an example is as follows: puckALL= NOPASSWD: /usr/bin/pico -w /etc/bind/[A-z]* I'm letting puck edit anything in /etc/bind/ using sudo, no password required. this should fit your needs. On Wed, 2002-02-13 at 13:32, Chris Hilts wrote: On Wed, Feb 13, 2002 at 07:37:06PM +0100, Hans

Re: shutdown/halt as user

2002-02-13 Thread Jason Majors
How can I let a normal user use the halt or shutdown command? I need this for the remote control of my TV box. I tried changing permissions, but that didn't help. --Hans I just did chmod a+s /sbin/shutdown But you have to rerun it whenever you update that package.

Re: shutdown/halt as user

2002-02-13 Thread Gustavo Noronha Silva
On Wed, 13 Feb 2002 11:59:25 -0700 Jason Majors [EMAIL PROTECTED] wrote: How can I let a normal user use the halt or shutdown command? I need this for the remote control of my TV box. I tried changing permissions, but that didn't help. --Hans I just did chmod a+s /sbin/shutdown But

Re: shutdown/halt as user

2002-02-13 Thread Hans
Thanks. That did the trick. The box is not on a network (never will) so no worries about security. --Hans At 11:59 AM 2/13/02 -0700, Jason Majors wrote: How can I let a normal user use the halt or shutdown command? I need this for the remote control of my TV box. I tried changing permissions,

Re: [Fwd: Re: shutdown/halt as user]

2002-02-13 Thread Anthony DeRobertis
On Wednesday, February 13, 2002, at 01:43 PM, Jason Ramey wrote: correct, an example is as follows: puckALL= NOPASSWD: /usr/bin/pico -w /etc/bind/[A-z]* I'm letting puck edit anything in /etc/bind/ using sudo, no password required. this should fit your needs. Remember that most editors

Re: shutdown/halt as user

2002-02-13 Thread Tom Cook
Hans wrote: Thanks. That did the trick. The box is not on a network (never will) so no worries about security. --Hans Now there's a brave, brave man. '2 digits? Sure, it won't be running by 2000...' Tom