Nick Hill proclaimed:
> edit /etc/passwd and make the shell field (the last field on a line) to something
> like /bin/false or something on thoz lines. this will allow u're users to ftp
> thru their home dir, but block telnet. U may consider anonymous access. anyway
> ftping files in, when u cant access thru a telnet doesn't make much of a sense,
> unless u're serving a webserver, where u're users could put their pages in...


I'd like to go on record as saying that among all the answers provided to
this Q, only this is the Right One.

Here is what you need to do:

1. See if you have /bin/false, /bin/true, /usr/bin/false or /usr/bin/true. 
These are "shells".

2. Edit /etc/passwd as root and change the shell of the user whom you want
to restrict to /bin/false (or whatever you found in step 1).

3. Edit /etc/shells and add /bin/false (or whatever you used in step 2) to
it.

4. Restart inetd.

5. Voila!

Thaths
-- 
Homer: [yawns] Marge, I'm bored.
Marge: Why don't you read something?
Homer: Because I'm trying to _reduce_ my boredom.
Sudhakar C13n    http://www.aunet.org/thaths/    Lead Indentured Slave

-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to