Hello

I have worked on an extension in rssh which allows the restricted user to run 
sudo.
With sudo, we can now say that a user A may run the command B as user C, which 
makes more sense to us because it's easier to specifiy which commands can be 
run as which user in the sudoers file.
So, for example, we have this sudoers file:
testuser     ALL = (apache) NOPASSWD: /etc/init.d/apache

the user testuser has as shell the /usr/local/bin/rssh and in the rssh.conf is 
specified that he may run sudo.
So he can now just login with
ssh testu...@server sudo -u apache /etc/init.d/apache restart (for example)
This restart apache and then kicks him out of the server.

If you want then I may send you the sourcecode of this extension (which is 
still in the testing phase, so...)

That's it
Have a nice day

K.S.

Attachment: binU6L7a2mmB7.bin
Description: PGP Public Key

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to