git-shell is a good choice. And it's well tested.

You just set user's login shell to git-shell, then put some script or binary 
executable at user's $HOME/git-shell-commands/ directory. 

-- 
yegle
http://about.me/yegle


On Monday, December 3, 2012 at 3:36 PM, Jarry wrote:

> Hi Gentoo-users,
> 
> 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?
> 
> Jarry
> -- 
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
> 
> 


Reply via email to