- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp service - very strange behaviour
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2004 02:00 AM
06-28-2004 02:00 AM
ftp service - very strange behaviour
Up until a few weeks ago we have been able to ftp to the server as any user and anonymous and specify the full path of the file to put onto the server without any problems. Now, anonymous user will connect okay but will not allow any transfers to the server. All other users (appart from root) when using the put command - put /data/TEST - we get the follwoing error message - 553 /data/TEST: Permission denied on server. (Upload) - yet if we start from the /data directory and just use - put TEST - the transfer is successful. Root is always successful.
Any suggestions as I now feel as if I'm banging my head against a brick wall.
Many thanks in advance, Graeme.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2004 02:03 AM
06-28-2004 02:03 AM
Re: ftp service - very strange behaviour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2004 02:07 AM
06-28-2004 02:07 AM
Re: ftp service - very strange behaviour
Can you display an output of ll of the dir.
Can it be that permissions on the dir the anon tries to write to have changed?
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2004 02:09 AM
06-28-2004 02:09 AM
Re: ftp service - very strange behaviour
I agree with the previous suggestions. 'ftpaccess' is in use. Looks like /data is not given permissions to be uploaded into.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2004 02:28 AM
06-28-2004 02:28 AM
Re: ftp service - very strange behaviour
As you can see below there is full permissions on the public directory.
drwxrwxrwx 2 root sys 1024 Jun 16 12:38 public
Mark,
We do not use the ftpaccess file. There is no file on the server and never has been.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2004 02:34 AM
06-28-2004 02:34 AM
Re: ftp service - very strange behaviour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 08:41 PM
06-29-2004 08:41 PM
Re: ftp service - very strange behaviour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 06:53 AM
06-30-2004 06:53 AM
Re: ftp service - very strange behaviour
Your FTP server is HPUX 11.23, correct. What type of boxes are you FTP'ing from?
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 07:12 AM
06-30-2004 07:12 AM
Re: ftp service - very strange behaviour
When you use an ftp put with a full pathname, the client will attempt to use that full path on the server. So if there is no /data dir on the server, you will not be able to upload. However, it looks like there is a /data dir on the server but it is not writable by ordinary users, only by root.
You should change the permissions on the /data director on the server if you want users to be able to ftp to it.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 07:17 AM
06-30-2004 07:17 AM
Re: ftp service - very strange behaviour
Just for test (and change it back after), try to issue a chmod a+w / on the HP server, and then test the ftp commands.
If this is the case, it may have 2 causes :
. The ftp clients have change and they don't send the same commands as before. (Even a single update on windows could have done this)
. An admin issued a chmod a-w on /
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 07:19 AM
06-30-2004 07:19 AM
Re: ftp service - very strange behaviour
it can't be the solution : they can issue a cd to /data and put TEST. Only put /data/TEST doesn't work.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 07:24 AM
06-30-2004 07:24 AM
Re: ftp service - very strange behaviour
No, they are changing directory to /data on the client machine BEFORE the ftp.
> If they change directory to /data before
> entering ftp and use - put TEST - it
> works fine.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 07:37 AM
06-30-2004 07:37 AM
Re: ftp service - very strange behaviour
/data/TEST is on client...
thanks !
However, you still have the problem of the client : It tries to put a file called "/data/TEST" on /. IMHO problem is not on server side...
What is OS on clients ?
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 07:59 AM
06-30-2004 07:59 AM
Re: ftp service - very strange behaviour
Even blind hogs . . . :)
We agree that it is trying to put the file in /data/TEST on the server. I don't know what could have changed to cause this, but I have noticed similar behavior using the 11.11 ftp client, and ran a few tests which confirmed that it would exhibit this type of behavior.
Graeme,
Is it possible that different clients are responsible for differing behavior?
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 09:53 PM
06-30-2004 09:53 PM
Re: ftp service - very strange behaviour
Correct, HPUX 11.23, we usually only ftp from a HPUX 10.20 server and it has been from this that I have been testing. I have just done some testing from an XP Pro PC and found the following.
If I specify put /test/PATTERN PATTERN or put /test/PATTERN /tmp/PATTERN, all works fine. Except for anonymous, still gives the same error when I use put /test/PATTERN PATTERN.
Just tried same from 10.20 server with the same results.
At present the only user now having the problem is the anonymous user. I have rechecked the permissions on the public directory and they are full permissions for everyone.
It would appear to be a permissions problem but everything I check regarding permissions appear to be correct.
Again, thanks for your assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 11:40 PM
06-30-2004 11:40 PM
Re: ftp service - very strange behaviour
According to my documentation, for an anonymous session HPUX's ftpd does a chroot to the home directory of the user "ftp". Unless /data is the ftp user's home directory and there is a subdirectory /data/data, you would not be able to do a put using the full path of /data/TEST, because it would actually be trying to put it at /data/data/TEST.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 12:06 AM
07-01-2004 12:06 AM
Re: ftp service - very strange behaviour
You are correct, but the tests I have been doing lately have been specifying the name of the file to call it at the remote end. Example, put /test/PATTERN PATTERN. Doing this as anonymous is still producing the error, but as any other user is working fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 12:50 AM
07-01-2004 12:50 AM
Re: ftp service - very strange behaviour
What are the permissions on the ftp user's home directory? If they are dr-xr-xr-x (555) as the manual calls for, then you will not be able to create a new file in that directory and a put will fail with permission error.
However, if there is already a file there you will be able to write over it.
Sorry if I am repeating the obvious . . .
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 01:53 AM
07-01-2004 01:53 AM
Re: ftp service - very strange behaviour
The ftp users home dir is drwxrwxrwx (777). So in theory there shouldn't be a problem writing to it, but in this case theory is wrong.