Hi,

In the password (/etc/passwd) file, as shell enter /bin/false. This will
give the user no shell and hence no shell, rsh, telnet or ssh access to the
machine. FTP requires no shell and therefore the user will have ftp access
to the machine [provided you configure your ftp daemon correctly]

Forget tcp wrapper.

The line will look like:

 jdoe:x:666:100:John Doe:/home/jdoe:/bin/false

Good luck,

  Pieter-Bas

----- Original Message -----
From: "Daniel Pope" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, 09 November, 2001 06:23
Subject: Tcp-wrapper question !


> Dear all,
> I'm a little bit embaressed to ask this trivial
> question but I scanned vainly the Internet to find an
> answer and I have to solve it quickly.
> I'm the administator of Linux RedHat system (only one
> computer)  and I have to allow a user (I have recently
> created his account on the this Linux System) access
> only by FTP (deny Telnet access). The user should be
> able to log only with FTP but not with Telnet from
> anywhere.
>
> Of course, I tried to use TCP WRAPPER but I canot find
> the properly syntax.
>
> Adding a line inside hosts.deny as
> in.telnetd : USER_ACCOUNT_NAME@ALL was the "clever" of
> all the combinations I tried. (tcpd is installed and
> working OK).
>
> Any hint would be very appreciated !
>
> Daniel Pope
>
>
>
>
>
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
>
>


Reply via email to