Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 1995 14:29:31 +0800 (HKT)
From:      John Beukema <john@gateway.net.hk>
To:        Ollivier Robert <roberto@keltia.freenix.fr>
Cc:        Mark Stout <mcs@vpm.com>, hackers@FreeBSD.ORG
Subject:   Re: Anybody using ftp groups with the wu ftpd compiled for
Message-ID:  <Pine.BSD/.3.91.951031142720.14261A-100000@gateway.net.hk>
In-Reply-To: <199510281540.QAA26158@keltia.freenix.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
if you have chrooted your anonymous ftp server you will need to provide 
the ls command somewhere in the path that the chrooted server can access.

jbeukema



On Sat, 28 Oct 1995, Ollivier Robert wrote:

> It seems that Mark Stout said:
> > I'm having no luck setting up restricted ftp access.  I want my accounts to
> > ftp into their account and do what they want from there, but that's as far
> > as they go.  Their home directory in effect becomes their '/' directory,
> > just /usr/home/ftp becomes the '/' for the anonymous user.  I'm using the
> > ftpaccess file and trying to setup 'guestgroups'.  However, it fails on me
> > everytime.  The anonymous user can log in, but valid users can not.
> 
> I just tried it and it worked. I  was not able to  "DIR" or "LS" but I was
> restricted to my home directory and a "GET" succeeded.
> 
> 306 [16:04] roberto@keltia:/build> ftp localhost
> Connected to localhost.
> 220 keltia.freenix.fr FTP server (Version wu-2.4(1) Mon Aug 14 12:20:49 MET DST 1995) ready.
> Name (localhost:roberto): 
> 331 Password required for roberto.
> Password:
> 230 User roberto logged in.  Access restrictions apply.
> Remote system type is UNIX.
> Using binary mode to transfer files.
> ftp> dir
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for /bin/ls.
> 226 Transfer complete.
> ftp> cd ..
> 250 CWD command successful.
> ftp> dir
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for /bin/ls.
> 226 Transfer complete.
> ftp> cd shell
> 250 CWD command successful.
> ftp> dir
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for /bin/ls.
> 226 Transfer complete.
> ftp> ls
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for /bin/ls.
> 226 Transfer complete.
> ftp> get aliaslist
> local: aliaslist remote: aliaslist
> 200 PORT command successful.
> 150 Opening BINARY mode data connection for aliaslist (1156 bytes).
> 226 Transfer complete.
> 1156 bytes received in 0.035 seconds (33 Kbytes/s)
> ftp> 221 Goodbye.
> 
> > 4. That there is a 'ftp' group and a 'guest' group in /etc/group
> 
> I have a group named ftponly in both ftpaccess and in /etc/group.
> 
> ftponly:*:40:roberto
> 
> # specify which group of users will be treated as "guests".
> guestgroup ftponly
> 
> The "LS" problem is interesting.
> -- 
> Ollivier ROBERT    -=- The daemon is FREE! -=-    roberto@keltia.frmug.fr.net
>    FreeBSD keltia.freenix.fr 2.2-CURRENT #3: Wed Oct 25 02:00:10 MET 1995
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD/.3.91.951031142720.14261A-100000>