Operating System - HP-UX
1752305 Members
4721 Online
108786 Solutions
New Discussion

allowing ftp and restricting telnet to certain users

 
Saravanan_6
Advisor

allowing ftp and restricting telnet to certain users

how to provide only ftp access to a user and restrict the telnet/ssh access to the same user ?

1 REPLY 1
Danny Petterson - DK
Trusted Contributor

Re: allowing ftp and restricting telnet to certain users

Hi!

Make the default-shell for the user in question /bin/false - be sure this is in the /etc/shells-file. If the /etc/shells-file is not there, create it, and be sure ALL used shells on the system is in here, an example could be:

/bin/false
/usr/bin/ksh
/usr/bin/sh
/usr/bin/csh
/usr/bin/rsh
/sbin/sh
/bin/sh
/bin/csh

Greetings from
Danny Petterson