Keeping Users in Check

Monday, 20 January 2003, 12:47 PM EST

To use scp, a user must have a login and password on a machine. Usually, that corresponds to being able to log into the machine. This is not always a good idea, either for security reasons, or just because the users don't know what they're doing. scponly acts as a kind of alternative shell. It doesn't allow users to get a shell on your machine, but it does allow users to copy files using scp.

It works like this ó after you've downloaded and compiled scpcopy, you add scponly to /etc/shells. It should just be one line like /usr/local/bin/scponly, or /usr/local/bin/scponlyc if you compiled scponly with the "--enable-chrooted-binary" option (more on that later). Then, either add a user and set his shell to scponly, or change an existing user's shell to scponly. Then the user can copy files using scp or one of the Secure Copy utilities found on Windows or other platforms. There's no special syntax that needs to be used after scpcopy is installed; users use scp as normal.

[ Read more ]

Related items


How to talk infosec with kids

Posted on 17 September 2014.  |  It's never too early to talk infosec with kids: you simply need the right story. In fact, as cyber professionals itís our duty to teach ALL the kids in our life about technology. If we are to make an impact, we must remember that children needed to be taught about technology on their terms.

Weekly newsletter

Reading our newsletter every Monday will keep you up-to-date with security news.

Daily digest

Receive a daily digest of the latest security news.


Fri, Sep 19th