[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: new twist on shutting down and restricting ssh users



On 06-Mar-2002 dman wrote:
> 
> I want to allow my dad to shut down the router/gateway.  I want to do
> this by creating a login name "halt" that simply shuts down.  I did
> this by making /sbin/halt the shell.  As I understand it, only root is
> allowed to halt a system, so I made halt owned by root:halt with
> permissions 4754.  This works, but I am interested in comments on the
> pros/cons of this setup.  In addition, I want to disallow loggin in as
> 'halt' via ssh.  How can I do that?
> 

I gave my wife sudo access for halt only.  It is not that hard to teach them to
login, then type 'sudo halt'.

ssh uses pam, so you can limit users via the pam interface.  At least you
should be able to anyways.



Reply to: