Jarry wrote:
I'm facing this problem: I *have to* allow one non-root user
to shutdown my server remotely (ssh). I know I could create
account for him and add his login into /etc/shutdown.allow but
I do not want to grant him full shell access.

I thought about adding "/sbin/shutdown -a h now" as his shell
into /etc/passwd so that right after he authenticates himself,
shutdown is called. But I'm not sure something like this is
possible (shutdown must be probably called from shel)...

Or is there maybe some other way how to create very restricted
account where user could not do anything else but call shutdown?

Could you create a simple webapp that requires authentication and has a big Shutdown button? Something like that would be fairly easy to make with Django, or something simpler like Pylons.

--
R

Reply via email to