Re: upload pb with anonymous
Stephane Bentebba <[email protected]> Wed, 21 Apr 2004 15:17:27 +0200
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <[email protected]> |
as nobody seems able to reply to me, i auto-reply to myself :
Stephane Bentebba wrote:
> hi all,
> <smile>
>
> still have a problem in anonymous mode like this :
> ftp> put afile anothername
> ...
> 553 anothername : Permission denied on server. (Upload)
>
> meanwhile my ftpaccess is like that :
> # Version wu-2.6.2(1) Wed Mar 3 22:51:51 UTC 2004
> ...
> anonymous-root /var/wu-ftp/ftp
> upload /var/wu-ftp/ftp * no
> upload /var/wu-ftp/ftp /pub/incoming yes ftpadmin
> ftpadmin 0666 nodirs
> ...
it could be a bug
or
the documentation could be more explicit on what should be put as
<root-dir> and <dirglob>
when you use chrooted anonymous
>
>
> if I change the <root-dir> for upload from /var/wu-ftp/ftp to *, it
> works :
> upload * /pub/incoming yes ftpadmin ftpadmin
> 0666 nodirs
>
> but I would like to control my upload without putting * here in my
> ftpaccess
I think you can leave it as it is (using * as <dirglob>)
because :
if you clearly separate anonymous (/var/wu-ftp/ftp/pub/incoming) tree
from other guest or real user trees (/var/wu-ftp/<user>), you
definitelly can't mistaken : the important point is not to have a "/pub"
dir in other users <root-dir>
>
>
> > someone already encounter this ?
> > any solution ?
>
> viva debian linux
here is an extract of my /etc/wu-ftpd/ftpaccess :
<<
...
anonymous-root /var/wu-ftp/ftp
upload /var/wu-ftp/ftp * no
upload * /pub/incoming yes ftpadmin ftpadmin 0222 nodirs
upload /var/wu-ftp * yes user3 user3 0777
...
>>
and my /wu-ftp/etc/passwd (see the home dir specification)
<<
root:*:0:0:root::
ftpadmin::1003:1003:,,,:/home/ftpadmin:/bin/bash
user3::1005:1005:,,,:/:/bin/bash
# my anonymous (ftp) real user
ftp:!:102:102::/var/wu-ftp/ftp/pub:/bin/false
# guest users
user1::1006:1006:,,,:/user1:/bin/bash
user2::1000:1000:,,,:/user2:/bin/bash
user4::1001:1001:,,,:/user4:/bin/bash
>>
my tree :
/var---/wu-ftp---/ftp----/pub---/incoming
|
-/user2 watch out
| no /pub in those user dir...
-/user1
|
-/user3
hth