LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-20-2007, 02:40 PM   #1
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Rep: Reputation: 17
Post Ftp issue can't upload


Hi All

I am having problems uploading to my ftp server,
(Solaris 10), I can get files from my server, but can't upload.

Q. Has there been any changes from solaris 9 to solaris 10 that may cause this problem.

I have read that there may be a switch in the inetd.conf that may need changing,(setting -a or -A) or is this all related to ftpd from solaris 9, because wu-ftpd is used in solaris 10.

Q. Am I heading in the right direction?


Many thanks in advance for your help

1jnike
 
Old 04-20-2007, 03:27 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What error message do you get ?
 
Old 04-20-2007, 08:03 PM   #3
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Original Poster
Rep: Reputation: 17
Post

Quote:
Originally Posted by jlliagre
What error message do you get ?
Hi jlliagre,

The error code which gets reported is 553 you do not have permission to upload on to this server! Or something alone those lines.

Regards

1jnike
 
Old 04-21-2007, 01:24 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Are you logged in on the FTP server or are you using anonymous FTP ?

What ftp client are you using ?
 
Old 04-21-2007, 05:48 AM   #5
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Original Poster
Rep: Reputation: 17
Question

Quote:
Originally Posted by jlliagre
Are you logged in on the FTP server or are you using anonymous FTP ?

What ftp client are you using ?

Hi jlliagre,

This is the is what I can do and what I can't do logged on as anonymous:
<snip>
331-(220 starzone01 FTP server ready.)
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> bin
200 Type set to I.
ftp> hash
Hash mark printing on (8192 bytes/hash mark).

ftp> get WG311T13.inf
200 PORT command successful.
150 Opening BINARY mode data connection for WG311T13.inf (13000 bytes).
##
226 Transfer complete.
local: WG311T13.inf remote: WG311T13.inf
13000 bytes received in 0.21 seconds (59.38 Kbytes/s)
ftp> cd /incoming
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
webtv
#
226 Transfer complete.
7 bytes received in 0.012 seconds (0.56 Kbytes/s)
ftp> put sample.tar
200 PORT command successful.
553 sample.tar: Permission denied on server. (Upload)
ftp>
<snip end>

I have also read that error code 553 refers to wrong type of naming convention, is this the problem?

Many Thanks in advance

1jnike
 
Old 04-21-2007, 05:56 AM   #6
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Original Poster
Rep: Reputation: 17
Lightbulb Re: ftp issue can't upload

Hi jlliagre,

I forgot to mention perviosly, the client am using on my ftp server is Wu-ftp.

1jnike
 
Old 05-15-2007, 05:40 AM   #7
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Original Poster
Rep: Reputation: 17
Post Ftp issue resolved!

Hi All

Thanks to those for their in-put

I have found the answer to my question, I hope the following is helpful to others;

<Note Snip>
I have found the information which has enabled me to upload files, the info has been extracted from:

http://www.landfield.com/wu-ftpd/man...ftpaccess.html


In a nutshell items changed in ftpaccess file:

To permit uploads

If it does permit uploads, all newly created files will be owned by <owner> and <group> and will have their permissions set according to <mode>, existing files which are overwritten will keep their original owner- ship and permissions.

Directories are matched on a best-match basis.

For example:
upload /var/ftp * no
upload /var/ftp /incoming yes ftp daemon 0666
upload /var/ftp /incoming/gifs yes jlc guest 0600 nodirs

would only allow uploads into /incoming and /incoming/gifs. Files that were uploaded to /incoming, would be owned by ftp/daemon and would have permissions of 0666.
File uploaded to /incoming/gifs would be owned by jlc/guest and have permissions of 0600. Note that the <root-dir> here must match the home directory specified in the password database for the "ftp" user.

How to resolve this error, 550 HAVE_REGEX error.

regexp>
path-
filter <typelist> <mesg> <allowed_charset> {<disallowed

For users in <typelist>, path-filter defines regular expressions that control what a filename can or can not be. There may be multiple disallowed regexps. If a filename is invalid due to failure to match the regexp criteria, <mesg> will be displayed to the user.

For example:

path-filter anonymous /etc/pathmsg ^[-A-Za-z0-9._]*$ ^\. ^- specifies that all upload filenames for anonymous users must be made of only the characters A-Z, a-z, 0-9, and "._-" and may not begin with a "." or a "-". If the filename is invalid, /etc/pathmsg will be displayed to the user,(550 HAVE_REGEX error).
<Snip End>

jnike
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP upload hinetvenkat Linux - Software 3 06-02-2005 09:34 PM
Cant upload to another FTP brandog Linux - Software 1 05-03-2003 02:47 PM
Upload limit on FTP twantrd Linux - General 3 04-28-2003 02:03 AM
Can't Upload FTP twantrd Linux - General 1 03-28-2003 09:15 PM
ftp upload hotrodowner Linux - Networking 20 10-11-2002 04:23 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration