Gentoo Archives: gentoo-user

From: Randy Barlow <randy@×××××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to set-up "shutdown-only" user?
Date: Mon, 03 Dec 2012 21:17:08
Message-Id: 50BD1673.4090909@electronsweatshop.com
In Reply to: [gentoo-user] How to set-up "shutdown-only" user? by Jarry
1 Jarry wrote:
2 > I'm facing this problem: I *have to* allow one non-root user
3 > to shutdown my server remotely (ssh). I know I could create
4 > account for him and add his login into /etc/shutdown.allow but
5 > I do not want to grant him full shell access.
6 >
7 > I thought about adding "/sbin/shutdown -a h now" as his shell
8 > into /etc/passwd so that right after he authenticates himself,
9 > shutdown is called. But I'm not sure something like this is
10 > possible (shutdown must be probably called from shel)...
11 >
12 > Or is there maybe some other way how to create very restricted
13 > account where user could not do anything else but call shutdown?
14
15 Could you create a simple webapp that requires authentication and has a
16 big Shutdown button? Something like that would be fairly easy to make
17 with Django, or something simpler like Pylons.
18
19 --
20 R

Replies

Subject Author
Re: [gentoo-user] How to set-up "shutdown-only" user? Randy Barlow <randy@×××××××××××××××××.com>