Re: chrooted users: how to see directory content ?
Stephane Bentebba <[email protected]> Tue, 01 Mar 2005 12:05:02 +0100
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <[email protected]> |
no, you don't need a valid shell path
in your chrooted env, suppose it is /wu-ftp
suppose you have :
/wu-ftp
/etc
passwd
/bin
bash
/user1
you must have an entry for the user "user1" but the shell path doesn't
need to be /bin/bash, you can simply put /bin/ftponly even if ftponly
doesn't exist
here is a sample entry from my "chrooted" passwd file :
friend:!:1000:1000::/friend:/bin/ftponly
the passwd is also usefllness as the passwd is checked versus the real
passwd from the system /etc/passwd file
Aldo Podavini wrote:
> Many thanks to Ted, Bob and Stephane.
> I'll work around it, then I'll let you know.
> Just one more question: does the chrooted user need a valid shell
> access in order to run ls ?
>
> Thx again
> Aldo
>
>
>> On Mon, 28 Feb 2005, Aldo Podavini wrote:
>>
>>
>>
>>> Hi all.
>>> When I put a user into a guest group (which is the only way you can
>>> force him to be chrooted, if I'm not wrong), he cannot see his
>>> directory
>>> content (i.e.: the server doesn't respond on a LIST command). He can
>>> upload/download files (if he knows filenames), but he cannot see them.
>>>
>>> Where am I wrong ?!?
>>>
>>> Thanks
>>> Aldo
>>>
>>>
>>
>>
>>
>>
>
>
>
--
*Stéphane Bentebba
*Technicien de Maintenance
Tél.:
+33 (0)1.41.73.20.16
Fax.:
+33 (0)1.41.73.20.08
[email protected] <mailto:[email protected]>
www.fps.fr
<http://www.fps.fr>
<http://www.fps.fr> *FPS France*
Parc d'affaire Silic
43, rue de la Grosse Pierre
BP 40160
94533 RUNGIS Cedex