Anon FTP won't allow upload - RH 7.1

Anon FTP won't allow upload - RH 7.1

Post by Ohmste » Tue, 26 Jun 2001 01:04:19


Using Red Hat 7.1 and wu-2.6.1.16. The anon ftp directory is /var/ftp/ by
default. There are bin, etc, lib, pub directories in there. I would like
to have an incoming at the ftp root /var/ftp/ or in /var/ftp/pub/ and
tried to create the directories. No matter what permissions I put on the
directories, wu ftp gives a permission denied message for upload or
creating directories. Tried moving the ftp directorie to /home/ftp with
linuxconf or webmin and that is even worse, there is no pub, bin, etc, or
lib directories when loggin in, even if I copy the directories there.

Any pointers on anonymous ftp server setup would be appreciated.

Thanks,
~Ohmster

 
 
 

Anon FTP won't allow upload - RH 7.1

Post by Ohmste » Tue, 26 Jun 2001 04:21:32


Here is my /etc/ftpaccess file, is there something wrong here that keeps
anonymous users from uploading?

loginfails 2

# HEY YOU!  Yeah, you with the editor.
# change the following line, or delete it, OK?
# class   local   real,guest,anonymous *.domain 0.0.0.0
class   remote  real,guest,anonymous *

limit   local   20  Any                 /etc/msgs/msg.toomany
limit   remote  100 SaSu|Any1800-0600   /etc/msgs/msg.toomany
limit   remote  60  Any                 /etc/msgs/msg.toomany

readme  README*    login
readme  README*    cwd=*

message /welcome.msg            login
message .message                cwd=*

compress        yes             local remote
tar             yes             local remote

# allow use of private file for SITE GROUP and SITE GPASS?
private         yes

# passwd-check
passwd-check    rfc822  warn

log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg

# all the following default to "yes" for everybody
delete          no      guest,anonymous         # delete permission?
overwrite       no      guest,anonymous         # overwrite permission?
rename                  no              guest,anonymous                 # rename permission?
chmod           no      anonymous               # chmod permission?
umask           no      anonymous               # umask permission?

# specify the upload directory information
upload  /var/ftp  *             no     nobody   nogroup 0000 nodirs
upload  /var/ftp  /bin          no
upload  /var/ftp  /etc          no
upload  /var/ftp  /lib           no
upload /var/ftp /incoming   yes ftpadmin ftpadmin 0440 dirs 3773
upload /var/ftp /incoming/* yes ftpadmin ftpadmin 0440 nodirs

# limit file retrieval
noretrieve .notar
noretrieve /home/ftp/incoming

# directory aliases...  [note, the ":" is not required]
alias   inc:    /incoming

# cdpath
cdpath  /incoming
cdpath  /pub
cdpath  /

# path-filter...
path-filter  anonymous  /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
path-filter  guest      /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-

# specify which group of users will be treated as "guests".
guestgroup ftponly



 
 
 

Anon FTP won't allow upload - RH 7.1

Post by Ohmste » Tue, 26 Jun 2001 05:55:20


Fixed the problem. Apparently, ftpaccess for upload reads the directory
structure as seen from the anon ftpuser. Changed this:

upload /var/ftp /incoming   yes ftpadmin ftpadmin 0440 dirs 3773
upload /var/ftp /incoming/* yes ftpadmin ftpadmin 0440 nodirs

to this:

upload *  /incoming   yes ftpadmin ftpadmin 0440 dirs 3773
upload * /incoming/* yes ftpadmin ftpadmin 0440 nodirs

In the /etc/ftpaccess file. This did the trick. Wu-ftpd now allows
uploads for anonymous users.

~Ohmster

 
 
 

Anon FTP won't allow upload - RH 7.1

Post by Dean Thompso » Tue, 26 Jun 2001 10:05:29


Hi!,

Quote:> Using Red Hat 7.1 and wu-2.6.1.16. The anon ftp directory is /var/ftp/ by
> default. There are bin, etc, lib, pub directories in there. I would like
> to have an incoming at the ftp root /var/ftp/ or in /var/ftp/pub/ and
> tried to create the directories. No matter what permissions I put on the
> directories, wu ftp gives a permission denied message for upload or
> creating directories. Tried moving the ftp directorie to /home/ftp with
> linuxconf or webmin and that is even worse, there is no pub, bin, etc, or
> lib directories when loggin in, even if I copy the directories there.

You should be able to create a directory at the ftp root level called
"incoming" or something like that.  Once you have set the appropriate
permissions so that the "ftp" user can write into the directory, you may need
to adjust your /etc/ftpaccess to allow the user to use the "put" command.

You might want to read the following URL is you are using wu-ftpd:
               http://www.wu-ftpd.org/wu-ftpd-faq.html#QA66

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

Anon FTP won't allow upload - RH 7.1

Post by Ohmste » Tue, 26 Jun 2001 11:07:59




> You should be able to create a directory at the ftp root level called
> "incoming" or something like that.  Once you have set the appropriate
> permissions so that the "ftp" user can write into the directory, you may
> need to adjust your /etc/ftpaccess to allow the user to use the "put"
> command.

> You might want to read the following URL is you are using wu-ftpd:
>                http://www.wu-ftpd.org/wu-ftpd-faq.html#QA66

Got it to work, see message in the above post. Thanks for trying to help Dean.
~Ohmster