Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Restrict commands for all users

Subject: Restrict commands for all users
Date: Wed, 11 Aug 2004 11:33:24 +1000
Hi,
I'd like to restrict the commands that almost all users are permitted
when logging in via openssh (to use unison for backup).
I realise I can do this by using the authorized_keys file, but in our
case we need them to login with their password so that the password
can be used by smbmount to mount the share they will be backing up to.

The users aren't really savvy enough to setup their own keys either,
so using authorized_keys would mean generating keys for all of them
and creating an authorized keys for them, and repeating this everytime
we need to add a new user.

It would be a lot simpler if I could just put a line like
   RestrictCommands   /usr/bin/unison
in /etc/ssh/sshd_config

Is there a simple way to restrict this so that all users may only
execute unison? If necissary I can setup a second ssh server just for
this purpose, and leave the other just for interactive logins.

Chris

<Prev in Thread] Current Thread [Next in Thread>