[Xitami] ftp: revisited
Alex Barna
xitami@lists.xitami.org
Wed, 02 Feb 2005 20:24:55 -0600
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.
> 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;
[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
I have no need of upload or download quotas so would I keep that at 0 ?
Couldn't I just use this file with the changes I made here to password &
root??
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