allowing scp but not ssh

Nathan Meyers nmeyers at javalinux.net
Mon Jul 22 18:07:46 EDT 2002


On Mon, Jul 22, 2002 at 02:04:10PM -0700, Struts User wrote:
> How do I configure my Redhat 7.3 box so that users can scp files but not 
> ssh into their accounts? I tried setting their shell field in 
> /etc/passwd to /bin/false or /sbin/nologin but both approaches also 
> denied scp access.

I suspect adding the desired bogus shell to /etc/shells will solve the
problem for you. (See the shells(5) man page.)

Nathan Meyers
nmeyers at javalinux.net



More information about the Discuss mailing list