* WU-FTPD : Using /bin/false in /etc/passwd file
@ 1995-05-01 4:00 Neil Movold
1995-05-03 4:00 ` Rick Beebe
1995-05-04 4:00 ` Stuart 'Zen' Bishop
0 siblings, 2 replies; 5+ messages in thread
From: Neil Movold @ 1995-05-01 4:00 UTC (permalink / raw)
Has anyone successfully been able to use /bin/false as a shell
in the /etc/passwd file in order to not allow users to telnet into
restricted FTP accounts? I want to be able to allow users to ftp
into my server to another root directory other than the anonymous
ftp directory in order to do WWW development. However, I don't
want them to be able to telnet into the server. There is some great
documentation on setting up this sort of environment in the book
"Managing INTERNET Information Services" on page 80 under
Group Controls. The procedure is straight forward but does not
work. The book says to put the shell /bin/false on the end of the
users /etc/passwd file entry which would block telnet, but this
does not work since if a user then FTPs into the FTP server,
they get an access denied error message.
Any suggestions would be appreciated.
Neil :-)
\\\//
(o o)
ooO-(_)-Ooo------------------------------------------------------------
Neil Movold Phone : +1 809 296-1800
Special Operations Consultant Fax : +1 809 295-7269
( i.e. the guy who has to
make it all work :-) )
Internet (Bermuda) Limited E-mail : nmovold@ibl.bm
P.O. Box HM2445
Hamilton, Bermuda
HM JX
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WU-FTPD : Using /bin/false in /etc/passwd file
1995-05-01 4:00 WU-FTPD : Using /bin/false in /etc/passwd file Neil Movold
@ 1995-05-03 4:00 ` Rick Beebe
1995-05-03 4:00 ` Jason K Fry
1995-05-04 4:00 ` Gadzhiev A. M.
1995-05-04 4:00 ` Stuart 'Zen' Bishop
1 sibling, 2 replies; 5+ messages in thread
From: Rick Beebe @ 1995-05-03 4:00 UTC (permalink / raw)
In <3o3f6g$4j6@longtail.ibl.bm>, nmovold@ibl.bm (Neil Movold) writes:
>Has anyone successfully been able to use /bin/false as a shell
>in the /etc/passwd file in order to not allow users to telnet into
>restricted FTP accounts? I want to be able to allow users to ftp
>into my server to another root directory other than the anonymous
>ftp directory in order to do WWW development. However, I don't
>want them to be able to telnet into the server. There is some great
>documentation on setting up this sort of environment in the book
>"Managing INTERNET Information Services" on page 80 under
>Group Controls. The procedure is straight forward but does not
>work. The book says to put the shell /bin/false on the end of the
>users /etc/passwd file entry which would block telnet, but this
>does not work since if a user then FTPs into the FTP server,
>they get an access denied error message.
I had this problem when I first set up anonymous FTP (about 4 years ago under
Ultrix), but I don't remember what fixed it. Sorry. I use sync. Don't know
if it'll make a difference. My /etc/passwd line looks like:
ftp:DdsdWFdgD:285:14:Anonymous FTP:/usr/ftp:/sbin/sync
Note that you can give the FTP account a password and that won't affect
anonymous FTP at all. People won't be able to telnet to, it though. Maybe my
initial problem was trying to use * in the password field?
_____________________________________________________________________
Rick Beebe (203) 785-4566
Data Network Operations Richard.Beebe@yale.edu
Biomedical Computing Unit
Yale University School of Medicine
333 Cedar Street, New Haven, CT 06510
_____________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WU-FTPD : Using /bin/false in /etc/passwd file
1995-05-03 4:00 ` Rick Beebe
@ 1995-05-03 4:00 ` Jason K Fry
1995-05-04 4:00 ` Gadzhiev A. M.
1 sibling, 0 replies; 5+ messages in thread
From: Jason K Fry @ 1995-05-03 4:00 UTC (permalink / raw)
Rick Beebe (beebe@biomed.med.yale.edu) wrote:
: In <3o3f6g$4j6@longtail.ibl.bm>, nmovold@ibl.bm (Neil Movold) writes:
: >Has anyone successfully been able to use /bin/false as a shell
: >in the /etc/passwd file in order to not allow users to telnet into
: >restricted FTP accounts? I want to be able to allow users to ftp
: >into my server to another root directory other than the anonymous
: >ftp directory in order to do WWW development. However, I don't
: >want them to be able to telnet into the server. There is some great
: >documentation on setting up this sort of environment in the book
: >"Managing INTERNET Information Services" on page 80 under
: >Group Controls. The procedure is straight forward but does not
: >work. The book says to put the shell /bin/false on the end of the
: >users /etc/passwd file entry which would block telnet, but this
: >does not work since if a user then FTPs into the FTP server,
: >they get an access denied error message.
: I had this problem when I first set up anonymous FTP (about 4 years ago under
: Ultrix), but I don't remember what fixed it. Sorry. I use sync. Don't know
: if it'll make a difference. My /etc/passwd line looks like:
: ftp:DdsdWFdgD:285:14:Anonymous FTP:/usr/ftp:/sbin/sync
: Note that you can give the FTP account a password and that won't affect
: anonymous FTP at all. People won't be able to telnet to, it though. Maybe my
: initial problem was trying to use * in the password field?
: _____________________________________________________________________
: Rick Beebe (203) 785-4566
: Data Network Operations Richard.Beebe@yale.edu
: Biomedical Computing Unit
: Yale University School of Medicine
: 333 Cedar Street, New Haven, CT 06510
: _____________________________________________________________________
There actually has to be a dummy file called /bin/false. Make sure that
it exists.
Jason K. Fry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WU-FTPD : Using /bin/false in /etc/passwd file
1995-05-01 4:00 WU-FTPD : Using /bin/false in /etc/passwd file Neil Movold
1995-05-03 4:00 ` Rick Beebe
@ 1995-05-04 4:00 ` Stuart 'Zen' Bishop
1 sibling, 0 replies; 5+ messages in thread
From: Stuart 'Zen' Bishop @ 1995-05-04 4:00 UTC (permalink / raw)
nmovold@ibl.bm (Neil Movold) writes:
>Has anyone successfully been able to use /bin/false as a shell
>in the /etc/passwd file in order to not allow users to telnet into
>restricted FTP accounts? I want to be able to allow users to ftp
>into my server to another root directory other than the anonymous
>ftp directory in order to do WWW development. However, I don't
>want them to be able to telnet into the server. There is some great
>documentation on setting up this sort of environment in the book
>"Managing INTERNET Information Services" on page 80 under
>Group Controls. The procedure is straight forward but does not
>work. The book says to put the shell /bin/false on the end of the
>users /etc/passwd file entry which would block telnet, but this
>does not work since if a user then FTPs into the FTP server,
>they get an access denied error message.
>Any suggestions would be appreciated.
Add '/bin/false' to the file /etc/shells. ftp won't let you in
unless you have a valid shell, and /etc/shells is what defines this.
--
_____
// // __ For a good time call http://www.bf.rmit.edu.au/~zen //
// / \ I\ I zen@rmit.edu.au //
// (-- I \I Unix Systems Administrator //
// \__/ I I alias Stuart Bishop Business Faculty, RMIT //
((_______________________________________________________________________//
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WU-FTPD : Using /bin/false in /etc/passwd file
1995-05-03 4:00 ` Rick Beebe
1995-05-03 4:00 ` Jason K Fry
@ 1995-05-04 4:00 ` Gadzhiev A. M.
1 sibling, 0 replies; 5+ messages in thread
From: Gadzhiev A. M. @ 1995-05-04 4:00 UTC (permalink / raw)
Rick Beebe (beebe@biomed.med.yale.edu) wrote:
: In <3o3f6g$4j6@longtail.ibl.bm>, nmovold@ibl.bm (Neil Movold) writes:
: >Has anyone successfully been able to use /bin/false as a shell
: >in the /etc/passwd file in order to not allow users to telnet into
: >restricted FTP accounts? I want to be able to allow users to ftp
: >into my server to another root directory other than the anonymous
Add /bin/false to /etc/shells file (list of valid shells).
Don't forget to read man sometimes;)
Alexey
--
Alexey Gadzhiev
Computer Center of Energy Department of Russia
e-mail : alexey@angel.energy.msk.su
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1995-05-04 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-01 4:00 WU-FTPD : Using /bin/false in /etc/passwd file Neil Movold
1995-05-03 4:00 ` Rick Beebe
1995-05-03 4:00 ` Jason K Fry
1995-05-04 4:00 ` Gadzhiev A. M.
1995-05-04 4:00 ` Stuart 'Zen' Bishop
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox