Does your user require ftp access, or are you trying to stop them accessing the system completely? Also do they have their own user account or do they share one, if so you could change the passwd or delete their account. The question is what do you want the user to be able do?
If you want them to only be able to [tt]ftp[/tt] in, change their shell (the last field in [tt]/etc/passwd[/tt]) to [tt]/usr/bin/false[/tt]. Then, if the file [tt]/etc/shells[/tt] exists, add [tt]/usr/bin/false[/tt] to it.
This will keep them from [tt]telnet[/tt]ing, but they can still [tt]ftp[/tt].
Hello Marrow,
Thanx for inquring, actually i just wanna block access of specific user for telnet, which is already told by Annihilannic. Thanx to him. Further i wanna block access of that specific user for ftp also. How we can do so. Deleting the account is not appicable here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.