Re: ftp server access

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 11/25/04


Date: Thu, 25 Nov 2004 07:05:44 GMT

On Wed, 24 Nov 2004 19:24:41 -0500, George Bell
<masteroftimadim@netscape.net> wrote:

> Hi List,
>
> I'm running an ftp server on my (SuSE)linux box, using
> the bsd port "ftpd" run from the inetd superserver. The
> corresonding line in inetd.conf reads:
>
> ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -S -u 022
>
> and the directory I want to serve is /usr/local/ftp/pub. The
> problem is that I can log in as anonymous and access my entire
> filesystem! In fact, as anoymous I was able to navigate to
> /etc and download passwd !! I really need to restrict access to
> just /usr/local/ftp/pub, but the documentation that came with
> the ftpd doesn't say say anthing about file access. Is there
> some way I can restrict access to pub?
>
> Thanks! George
>
> -- # #...

With oftpd, you can specify the root-directory as the last
argument on the commandline, full path.

Hard to imagine that you can't do something similar
with in.ftpd. If not there, it HAS to be an environment
variable or in a configuration file that is either in
/etc or in your home directory (probably as a 'dot' directory,
as in ~/.in.ftpd)

HTH

AC



Relevant Pages

  • RE: FTP server
    ... Then to bind user to his home directory ... the FTP server and service so I can change the permissions of a subfolder ... I want my friends account to access /var/www/pectaybte to ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: ftp error message
    ... Is it terribly unsecure to run the ftp server in the way that I have it ... server in SBS 2003 if it's not to be used? ... Read-write permissions enabled on the Home Directory ... 200 PORT command successful. ...
    (microsoft.public.windows.server.sbs)
  • Re: Access rights - FTP Server
    ... that source code to FTP server ships in platform builder in ... With Win CE 5.0 and the FTP server I have the following question: ... home directory for user A is \cars to which the user has read/write ... Is it possible to specify a home directory and to have the user NOT see ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Setup an FTP server (continued)
    ... I found the problem in home directory there is a checkbox to enable user ... can't find anyway to give access to some protion of my file system to some ... >>Now I have my FTP server up and running ... >>I have tryed to log as my ftp user and do normal operation, ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: VS2005 crashing when trying to Build a solution stored on a network drive
    ... That's what I'm saying, it was NOT mapped to your home directory. ... OK, in that case I agree, it doesn't look like it's related to the home directory mapping not being in place at install time. ... You have to wonder about the competency of your network Admin team though? ... Did they set up auditing of file access and file locking on both client and server and watch it carefully as you bit "build"? ...
    (microsoft.public.vsnet.general)