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




Spotlight

The evolution of backup and disaster recovery

Posted on 25 July 2014.  |  Amanda Strassle, IT Senior Director of Data Center Service Delivery at Seagate Technology, talks about enterprise backup issues, illustrates how the cloud shaping an IT department's approach to backup and disaster recovery, and more.


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.
  

DON'T
MISS

Mon, Jul 28th
    COPYRIGHT 1998-2014 BY HELP NET SECURITY.   // READ OUR PRIVACY POLICY // ABOUT US // ADVERTISE //