[Xitami] ftp: revisited

Johannes Prost xitami@lists.xitami.org
Thu, 03 Feb 2005 16:59:54 -0600


Hello Alex,


Am 2 Feb 2005 um 20:24 hat Alex Barna geschrieben:

> Hi  Johannes,
> 
> Johannes Prost wrote:
> 
> >  Hello Alex,
> >
> >  you need to create 2 files. You can do so through the GUI or just
> >  edit the file directly. The files are ftpdirs.aut and ftpusers.aut
> >  In the file ftpdirs.aut you name the directories you want to be
> >  accessed by ftp or browser from the users you define .
> >  Here an example entry
> 
> >  [../webpages/dirname] username = "*"
> >
> >  [dirname] username = "P" anonymus = "G" Between the " " you have to
> >  define the access right. Make sure you have a "space" between = and "
> >  For anyone to download you can use anonymus = "G" as username and
> >  user right for this particular directory.
> 
> Ok, those files exist. ftpdirs.aut currently reads;
> []
>     Admin=*
> 
> I just want to use the pub directory &  if I understand what xitami & 
> you said, if I want to allow uploads to the default ftp://myswbsite  pub 
> directory, could I just change ftpdirs.aut to;
> 
> [pub]
>        anonymous= "G"
> [pub]
>        username = "GP"
> 
> username being the name of the person I want to allow to upload ?  
> Would I need to add another;
> 
> [pub]
>        username = "GP"
> 
> if I were to allow other people to upload.

you have to put every username in there, but you can do that by adding all defined names under the 
directory like
[pub]
     username1 = 
     username2 =

A tip: I just copied the original files ( both )to a separate folder and edited the ones I created 
with only those entries I use. 


> 
> >  For the second file ftpusers.aut it would look as follows. In this
> >  file you define the users right to connect, the root (dir),
> >  password... Here the sample [username] Access = "P" Aliases = "0"
> >  Hard-quota = "" Password = "whatever-you-want" Pipe = "" Root =
> >  "dirname" Soft-quota = "" Use-quotas = "0"
> >
> >  For your example you would have to create 2 entries for the same
> >  root; one entry for the user ( username) and one entry for the
> >  visitors (anonymus) who should be able to ONLY download, as I
> >  understood correct. For the user Access = "P" For the visitor Access
> >  = "G" Both entries would have the same root = "dirname"
> >
> >  The directories which you want to create don't have to be in \ftproot
> >  . I have, as example, set \webpages with its directories for the
> >  virtual domains to access by ftp only for myself. If I'm correct,
> >  xitami finds the way to the correct directory mainly through the
> >  username / directory entries in ftpdirs.aut
> 
> The ftpusers.aut file currently contains;
> 

same here, copy the original to that folder I mentioned above and start the file only with your 
entries like the samples in the original what you are showing below.
> [Admin]
> access=GPDMR
> password=-
> root=""
> use-Quotas=0 # Enforce quotas per user
> 
> [Anonymous]
> access=G
> password=*
> root=pub
> 
> [Ftp]
> access=G
> password=*
> root=pub
> 
> [Guest]
> access=G
> password=""
> root=pub
> 
> [Upload]
> access=P
> password=xxxxxxxx
> root=pub
> use-quotas=0
> soft-quota=1.0 # Warnings above 4 Mbytes
> hard-quota=2.0 # Blocks above 5 Mbytes

Is this your username; upload ?
> 
> I have no need of upload or download quotas so would I keep that at 0 ?

 here a sample
       Soft-quota = ""
       Use-quotas = "0"

> Couldn't I just use this file with the changes I made here to password & 
> root??
> 
You could use that file, but I wouldn't do that. I know to guess a password is hard, 
but impossible ? I'm using xitami like other people too and we are the good guys, but the bad ones 
who would know about xitami would be able to start trying  the usernames which are there already. 
And that's my reason to put only my own entries in the file. They can guess and try and will give 
up sooner or later. :)


> Thanks,
> Alex,
> 
> >  I hope this description is clear enough.If not, let me know and I
> >  will try to explain it better.
> >
> >  2 Feb 2005 um 13:11 hat Alex Barna geschrieben:
> >
> > > Windows XP, Xitami 2.5c1 5MBS cable connection.
> > >
> > > I haven't used the ftp part of xitami & had it set to o off.. I now
> > > have a need to use it & need to set it to allow a friend to upload
> > > a 5mb file so others can download it.
> > >
> > > I reset defaults.cfg to, [Ftp] Enabled = "1" & can ftp to my site
> > > & see this default ftp page:
> > >
> > > Index of ftp://xx.xx.xxx.xx/ ------------------------- Up to higher
> > > level directory File: index.htm 1 KB 9/16/2002 12:00:00
> > > AM File: index.txt 1 KB 9/16/2002 12:00:00 AM
> > >
> > > What do I need to add so: there is only one directory shown a
> > > person with a password I give them can upload to this directory
> > > with an ftp client anyone can download from this directory with a
> > > browser?
> > >
> > > Alex,
> > >
> >
> >  Johannes
> 
> 
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami

Johannes