Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris 9 FTP 553 Permission denied on server (Upload) 1

Status
Not open for further replies.

slyork

Technical User
Aug 15, 2002
36
GB
OK Here's my scenario

Solaris 9, ran /usr/sbin/ftpconfig to setup anonymous ftp with home directory of /export/ftp, then added the following lines to /etc/passwd and /etc/shadow
ftp:x:30000:30000:Anonymous FTP:/export/ftp:/bin/false
ftp:NP:6445::::::

Directory Permissions as follows:

# pwd
/export/ftp
# ls -l
total 10
lrwxrwxrwx 1 root bin 9 Sep 1 11:37 bin -> ./usr/bin
d--x--x--x 2 root sys 512 Sep 1 11:37 dev
d--x--x--x 5 root sys 512 Sep 1 11:37 etc
drwxrwxrwx 5 root sys 512 Sep 1 12:33 pub
d--x--x--x 6 root sys 512 Sep 1 11:37 usr
# ls -l pub
total 6
drwxrwxrwx 2 root other 512 Sep 1 12:33 server1
drwxrwxrwx 2 root other 512 Sep 1 12:33 server2
drwxrwxrwx 2 root other 512 Sep 1 12:33 server3

I have setup the .netrc file to allow me to anonymously login to the server, which works fine, I just can't upload a thing! everytime I get this

553 filename: Permission denied on server. (Upload)

I have even restarted the FTP Daemon with the -A flag rather than -a which should stop it using /etc/ftpd/ftpaccess and my banner disappears so that appears to have funtioned, but still no uploads!!!!

Someone pass me the valium and the vodka!!

 
Can you include a copy'n'paste of an example FTP session that fails?

Annihilannic.
 
Here you go, thanks for taking the time to look at this for me.

# pwd
/tmp
# ls -l
total 16
-rwxrwxrwx 1 root other 120 Sep 1 14:51 steve.txt
-rw-r--r-- 1 root other 0 Sep 5 08:18 tmpback.log
# ftp petunixdev0
Connected to petunixdev0.abagri.com.
220 petunixdev0 FTP server (Version wu-2.6.2+Sun) ready.
331 Guest login ok, send your complete e-mail address as 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> put steve.txt
200 PORT command successful.
553 steve.txt: Permission denied on server. (Upload)
ftp>
 
Check out the upload keyword on the ftpaccess man page and in the /etc/ftpd/ftpaccess file. I suspect that's where the problem lies.

Annihilannic.
 
Oh, and the -a switch in inetd.conf does the opposite to what you say... it doesn't use ftpaccess by default, but in your case you want it to so you can grant upload rights.

Annihilannic.
 
Thanks for the response Annihilannic, ftpd man page says otherwise though

OPTIONS
in.ftpd supports the following options:

-A Disable use of the ftpaccess(4) file. Use of ftpaccess
is disabled by default.

-a Enable use of the ftpaccess(4) file.

And by default in my setup, straight from the install, -a was on.

Anyway, I have been playing with ftpaccess for a few days now and getting no where, I will however re-visit it and make sure I a not being a complete idiot.

Why did they need to complicate something that worked so easily in Solaris 8??!!!!

Thanks

Steve


 
Strange that yours had -a in inetd.conf already... I don't remember removing it at any stage. In any case, changing it to -A is not what you want (see the ftpd man page) because by NOT using the ftpaccess file it falls back to default behaviour, which includes prevention of uploads.

I guess the ftpd was replaced because wu-ftpd is much more flexible and configurable, and presumably more secure than the ftpd in previous versions of Solaris.

This is the upload line that worked for me:

Code:
upload class=anonusers /export/ftp /pub yes ftp other 0440 nodirs


Annihilannic.
 
Your a star, I don't know if I was over complicating my upload line or what (I will investigate later), but I replaced the line I had with your example and it worked.

Thankyou very much for taking the time to help me with this.

Regards

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top