nicolas derdaele wrote:

> j'utilisait jusqu'� maintenant une mandrake 6.1 en serveur web avec la
> possibilit� pour les utilisateur de modifier leurs pages par le serveur
> ftp ( celui install� par defaut sur mdk 6.1 wu-ftp je crois ). afin
> d'interdir aux  utilisateurs l'acces au r�pertoires sup�rieurs � leur
> home dirctory ils se loguent en guestuser ( guestuser * dans
> etc/ftpacces.conf ) cette configuration ne fonctionne plus avec la mdk
> 7.02.( le ls ne fonctionne plus )
>
> qqn aurait-il une id�e ?
> ou mieux ? : il est peut-etre possible de loguer les utilisateurs en
> utilisateur reel et de les emp�cher de remonter dans les repertoires par

extraits de man ftpaccess :

      guestgroup <groupname> [<groupname> ...]

       guestuser <username> [<username> ...]

       realgroup <groupname> [<groupname> ...]

       realuser <username> [<username> ...]

            For guestgroup, if a REAL user is a member of any of
<groupname>, the session is set up exactly as  with  anonymous
            FTP.   In other words, a chroot() is done, and the user is no
longer permitted to issue the USER and PASS commands.
            <groupname> is a valid group from /etc/group (or whatever
mechanism your getgrent(3) library routine uses).

            The user's home directory must be properly set up, exactly as
anonymous FTP would be.  The home directory field  of
            the passwd entry is divided into two directories.  The first
field is the root directory which will be the argument
            to the chroot(2) call.  The second half is the user's home
directory relative  to  the  root  directory.   The  two
            halves are separated by a "/./".

            For example, in /etc/passwd, the real entry:
                guest1:<passwd>:100:92:Guest
Account:/ftp/./incoming:/etc/ftponly
            When  guest1  successfully logs in, the ftp server will
chroot("/ftp") and then chdir("/incoming").  The guest user
            will only be able to access the directory structure under /ftp
(which will look and act as / to guest1), just as an
            anonymous FTP user would.

--

----------------------------------------------------------
  Frederic PLE
  email: [EMAIL PROTECTED]     Yahoo! Messenger: gvfred
----------------------------------------------------------

 Make money on the web :
      http://www.mediabarre.com/cgi-bin/mba.cgi?004761
      http://www.alladvantage.com/home.asp?refid=IIU-338


Répondre à