- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- More ftp problems
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
07-21-2003 06:55 PM
07-21-2003 06:55 PM
More ftp problems
In order to rectify this I have inerted this line into the /etc/ftpd/ftpaccess file:
upload /user/home/dir /dir/to/upload yes username group 037
I have also changed the ftp line in the /etc/inetd.conf file as such:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -u007 -t7200 -l
(because we want all the other users to keep their permissions and timeouts.
Yesterday I tested this out on the test box and it worked fine but the production box is not working as well. When they try to transfer the file they get this error after about 10 minutes:
The control port connection is lost.
If I just take out the -a option in the inetd.config file and reconfigure the daemon (inetd -c) they can transfer the file without problems but also without the correct permissions.
What am I doing wrong?
-Ronell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 07:16 PM
07-21-2003 07:16 PM
Re: More ftp problems
It seems that the operators of the mainframe are not careful what permissions they put on the file.
Fortuneately you have a servant, root cron that can change anything you need, including permissions.
If the file comes in at a fixed time, have root cron change the permissions a few minutes later to what they should be.
I didn't see your original post, but I've had these issues before and sometimes messing with the ftp server and inetd.conf is simply too time consuming for me.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 07:30 PM
07-21-2003 07:30 PM
Re: More ftp problems
They say there is no real pattern to it.
They also say that they can't set the permissions on the file before sending it.
I had this working on the test system but from my PC, not the mainframe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 07:39 PM
07-21-2003 07:39 PM
Re: More ftp problems
If you're sure these problems only occur when you enable use of ftpaccess with -a then the only thing I can think is that the timeout value being given to the ftpd daemon is being overridden by the ftpaccess file.
I have seen a timeout values being set in the ftpaccess file before, though I don't see it listed on HP-UX's man page for ftpaccess.
Might be something to investigate.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 11:38 PM
07-21-2003 11:38 PM
Re: More ftp problems
can you post the file ftpaccess for a check ?
I'm also thinking that, since in test environt worked, there may be some difference between test and prod... patch level ?
How did you manage the test, the from and to hosts where the same, as in prod (mainframe --> hpux ) ?
If the connection is dropped, in the syslog you should have some warning. Is there anything interesting there ?
Is there any relevat time difference between mainframe and hpux ?
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 01:12 PM
07-22-2003 01:12 PM
Re: More ftp problems
I'll look into that. But the seission doesn't jsut timeout, nothing is transferred in the 10 minutes.
Massimo,
The test and production environments are slightly different but the base operating system is the same.
As I mentioned, I was testing from my PC to the tst box, not from the mainframe. I can't do that becasue it would mean getting the mainframe team involved in trying to ftp to the test machine and it's all too much really.
The syslog only shows that there was a connection from the mainframe but no FTP LOGIN.
The user's home directory and the directory they're uploading to are in no way related - would this be a problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 02:24 PM
07-22-2003 02:24 PM
Re: More ftp problems
Let's start with the file coming from the "mainframe". In two of the more popular TCPIP clients used in the "IBM mainframe" world, permissions are not set in any config file or passed in the ftp job. Routinely, the permissions on a file sent are found to be that of rw by the user and group of the user that is in the ftp login session. I believe you are on the right track with the access file. Is the ftp user, the "mainframe" guy's are using, a common user on your HP-UX box?
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 02:37 PM
07-22-2003 02:37 PM
Re: More ftp problems
No, the user was set up specifically for the ftp'ing of these files from the mainframe.
And you're right, the guys say that they have no control over the permissions of the file.
-Ronelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 03:18 PM
07-22-2003 03:18 PM
Re: More ftp problems
Since I administer bot the HP-UX and "mainframe" side, I could run some tests here to duplicate your problem. What are the current permissions the files are coming in with and what do you want tem to be?
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 03:31 PM
07-22-2003 03:31 PM
Re: More ftp problems
One last question before I leave for the day. The user that is logging in from the mainframe has what permissions to the directory being put to?
Hang in there. We'll (the forums) will get your answer.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 03:48 PM
07-22-2003 03:48 PM
Re: More ftp problems
They're currently coming in with -rw-rw---- and we want them to be -rw-r-----
The user's group has rwx premissions to the directory.
-Ronelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 04:55 PM
07-22-2003 04:55 PM
Re: More ftp problems
Have you considered implementing ACLs on the directory on the UNIX server? Maybe you can work around the problem using ACLs.
Just an idea.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 05:41 PM
07-22-2003 05:41 PM
Re: More ftp problems
Aren't acl's for use on specific files?
Unfortunately the files they ftp will have a different name every day - or more than once a day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:25 PM
07-22-2003 06:25 PM
Re: More ftp problems
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:42 PM
07-22-2003 06:42 PM
Re: More ftp problems
A good idea but not very neat - especially considering the fact that there may be more than one file a day, the files don't all go to the same directory and the filenames are not always the same.
ftpaccess just seems like the easiest, most streamlined solution. I just wish I could get itto work on the production system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:52 PM
07-22-2003 07:52 PM
Re: More ftp problems
Does the Unix server have multiple network cards? If so, does the same problem occur on different lan interfaces? I wonder if it is more related to the lan card (patching).
Seems like you may need to go through a process of elimination - ugghh!
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 08:27 PM
07-22-2003 08:27 PM
Re: More ftp problems
ugghh! is right.
This server has only one network card.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 07:30 AM
07-23-2003 07:30 AM
Re: More ftp problems
"upload /user/home/dir /dir/to/upload yes username group 037"
037 is a bad value per my 11.0 man file. The examples they give use 0666 and 0600 (permissions and not mask). Perhaps that is why it doesn't want to work?
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 07:31 AM
07-23-2003 07:31 AM
Re: More ftp problems
This is the kind of thing that drives one crazy! It all looks like it should work.
Hmmm...
Was the -a option in inetd.conf previously? If not, then the ftpaccess file wasn't being used before. Maybe there's a problem someplace else in the file that's preventing transfers somehow. Can you post it?
Also, I noticed in the man page for ftpaccess that it's not a mask in the upload command, but a mode. So a rw-r-- mode should be 0640, not 037.
Good luck!
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 12:58 PM
07-23-2003 12:58 PM
Re: More ftp problems
When files are created in that directory, they should be owned by the group which owns the directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 01:01 PM
07-23-2003 01:01 PM
Re: More ftp problems
A good idea but the problem is that we don't want the group to be able to write to the files - the group permissions on the files are coming in as rw.
btw: are you from South Africa?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 01:13 PM
07-23-2003 01:13 PM
Re: More ftp problems
Sorry I am so late getting back to this.
I changed our inetd.conf entry for umask to
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a -u1000
This provided the requested result of rw-r-----
as you mentioned. Unfortunately, I believe this will be the same for all ftp jobs. Not sure this is what you really want. I tried diffrent user id's from our mainframe and all put files with the above permissions.
One thing to note in my testing, if the file already existed and was overwritten, previous files permissions did not change.
Best of luck. Let me know where you are on this problem.
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 01:36 PM
07-23-2003 01:36 PM
Re: More ftp problems
Thanks guys - I changed that.
Unfortunately it doesn't solve the problem.
Dave,
Thanks for trying but we already have the -u option set for our users.
Unfortunately the files being transferred need different permissions to what our other users need.
-Ronelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 02:16 PM
07-23-2003 02:16 PM
Re: More ftp problems
I hate not getting this resolved. I my testing I noted use of the the ftpaccess file for user permissions as you first stated. A man of this seems to infer that one can set permissions by directory and user. I'll follow up, but during testing, I tried making changes there without changing inetd.conf and failed to have any success. That is why I went back to the inetd.conf.
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 02:32 PM
07-23-2003 02:32 PM
Re: More ftp problems
I hate to ask such a seemingly obvious question, but does the mainframe have permission to connect to ftpd set up in ftpaccess?
I was doing a GSP upgrade the other day and couldn't transfer the files. It took me a while to realize that I hadn't put the address for the GSP interface in the class section of ftpaccess. Once I put it in, everything worked well and that made up for me feeling silly.
That could explain why removing the -a in inetd.conf allows it to work. Just another thought...
Regards,
Seth