Operating System - HP-UX
1833777 Members
2053 Online
110063 Solutions
New Discussion

Anonymous ftp: cannot upload to /pub

 
Roland SAINT-LEGER
Occasional Contributor

Anonymous ftp: cannot upload to /pub

Anonymous ftp has been setup using SAM.
Anonynous login works OK but file upload fails.
Below is the ftp session output:
----------------------------------------------
# ftp XXXXX
Connected to XXXXX.
220 XXXXX FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_34306) Mon Mar 13 11:14:17 GMT 2006) ready.
Name (XXXXX:root): ftp
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub
250 CWD command successful.
ftp> lcd /etc
Local directory now /etc
ftp> put passwd
200 PORT command successful.
553 passwd: Permission denied on server. (Upload)
ftp> quit
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 546 bytes in 0 transfers.
221-Thank you for using the FTP service on XXXXX.
221 Goodbye.
----------------------------------------------
I already checke file permissions: see below
root@supsup03:/# ll -R /home/ftp
total 0
dr-xr-xr-x 2 root other 96 Mar 12 14:42 dist
dr-xr-xr-x 2 root other 96 Mar 12 14:42 etc
drwxrwxrwx 2 ftp other 96 Mar 12 14:42 pub
dr-xr-xr-x 4 root other 96 Mar 12 14:42 usr

/home/ftp/dist:
total 0

/home/ftp/etc:
total 48
-r--r--r-- 2 root other 309 Mar 12 14:42 group
-r--r--r-- 2 root other 309 Mar 12 14:42 logingroup
-r--r--r-- 1 root other 930 Mar 12 14:42 passwd

/home/ftp/pub:
total 0

/home/ftp/usr:
total 0
dr-xr-xr-x 2 root other 96 Mar 12 14:42 bin
dr-xr-xr-x 2 root other 96 Mar 12 14:42 lib

/home/ftp/usr/bin:
total 1456
---x--x--x 1 root other 741556 Mar 26 2004 ls

/home/ftp/usr/lib:
total 32
-r--r--r-- 1 root other 16266 Mar 23 2006 tztab
root@supsup03:/#

Any idea is welcome

Regards.
Roland.
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Anonymous ftp: cannot upload to /pub

Roland,
please read eatlier thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1042835

Also check your /etc/ftpaccess.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !
Steven E. Protter
Exalted Contributor

Re: Anonymous ftp: cannot upload to /pub

Shalom Roland,

The most probable cause of not being able to upload to /pub is permissions on pub.

ll -d /pub/

You will probably see permissions on the directory do not permit group other to write.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Chandan Kumar_1
Honored Contributor

Re: Anonymous ftp: cannot upload to /pub

Hi Roland,

SEP is correct.

Check permission of /pub directory. You may have to assign permission of /pub directory.

Chandan K.
Learn. Share. Inspire.
Roland SAINT-LEGER
Occasional Contributor

Re: Anonymous ftp: cannot upload to /pub

Apparently the rigths ar OK on /pub:

drwxrwxrwx 2 ftp other 96 Mar 12 14:42 pub