Thanks for all the suggestions, I'll try them out shortly, however, I suddenly developed an odd problem. Typing halt now has the effect of reboot. I checked that symlink /usr/bin/halt still points to /sbin/halt, so why is it suddenly rebooting every time I shut down?

----
Ryan Bowman

'You must join me, Obi-wan, and together we will destroy the Sith!'
- Count Dooku

'And you, younk Skywalker, we will watch your career with great interest.'
- Supreme Chancellor Palpitine
----

From: Grant Robinson <[EMAIL PROTECTED]>
Reply-To: BYU Unix Users Group <[EMAIL PROTECTED]>
To: BYU Unix Users Group <[EMAIL PROTECTED]>
Subject: Re: [uug] More Gentoo questions
Date: Mon, 6 Oct 2003 14:04:22 -0600


On Monday, October 6, 2003, at 11:02 AM, Ryan Bowman wrote:


From: "Matt W." <[EMAIL PROTECTED]>
Reply-To: BYU Unix Users Group <[EMAIL PROTECTED]>
To: "BYU Unix Users Group" <[EMAIL PROTECTED]>
Subject: Re: [uug] More Gentoo questions
Date: Mon, 6 Oct 2003 08:48:05 -0600

From: "Ryan Bowman" <[EMAIL PROTECTED]>
> So I took Mike Halcrow's advice and modified the sudoers file so I can
sudo
> halt, but that doesn't solve the problem of exactly, because I want a
normal
> user to type 'halt' and have it work.

Assuming you have the sudoers file correct, can't your normal users type:
>sudo halt
><password>
Or is this more than what you wanted?

Matt W.


It's more.
I want to type 'halt' Nothing more. I suppose that sudo halt is okay, but it's 5 more characters that I need to type, not counting my password which it doesn't always ask for.

There is a rpm for Redhat called usermode (at least that is what it was called in RedHat 7.3) that accomplishes this. Basically it uses PAM stuff so that regular users can run console apps like 'shutdown' etc. You could probably download this, use rpm2tgz to convert it to a .tar.gz file, and then , in the root directory, do
tar xvfz thetarfile.tar.gz


Grant


____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

_________________________________________________________________
Instant message in style with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com



____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to