Operating System - HP-UX
1837242 Members
4673 Online
110115 Solutions
New Discussion

I need copy files by FTP with all the attributes

 

I need copy files by FTP with all the attributes

I am trying to send by Anonymous FTP some files from a FTP Windows Aplication (Reflection) to HP-UX, but it??s attributes are -rw-r---- and I need -rw-rw-rw to manipulate it.

Thanks for help.
Rich
8 REPLIES 8
Christopher McCray_1
Honored Contributor

Re: I need copy files by FTP with all the attributes

Hello,

If you are using the /etc/ftpd/ftpaccess file, you can add an upload line for the user(s):

upload /home/dir /incoming yes 0666 dirs

Hope this helps

Chris
It wasn't me!!!!
Wodisch_1
Honored Contributor

Re: I need copy files by FTP with all the attributes

Hi,

actually, you cannot not do that - at least not in general!
But is there a need for using "FTP", or could you go for "rsync"? THen you would be able to keep owner and permissions...

http://rsync.samba.org

Just my $0.02,
Wodisch
Christopher McCray_1
Honored Contributor

Re: I need copy files by FTP with all the attributes

Hello, again,

Just for your information, I just tested my above post ... Worked like a charm!!!!!


changed my entry from 0660 to 0666 to perform my test.

Regards

Chris
It wasn't me!!!!

Re: I need copy files by FTP with all the attributes

Chris:

There isn??t this file in my server. How can I get it?

Thanks
Rich
Christopher McCray_1
Honored Contributor

Re: I need copy files by FTP with all the attributes

What version of OS is it? 10.20? If so, then you are out of luck (you can use the public wu-ftp software), otherwise, this is introduced wit patch PHNE_14479 (HP-UX 11.00)


What about /etc/newconfig/etc/ftpd/ftpacess? This file is the template from which you can begin. Also, you can look at doc BC0814KBRC00007719

http://support2.itrc.hp.com/service/cki/search.do?category=c0&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=BC0814KBRC00007719&search.y=8&search.x=42&mode=id&admit=-1335382922+1027623218458+28353475&searchCrit=allwords

Hope this helps

Chris
It wasn't me!!!!

Re: I need copy files by FTP with all the attributes

Yes, It??s 10.20.

Ok.

And now, I resolve this defining users with FTP Access, but I need to make this users only stay in his home directory, this is disabled them the access to others directories.
Rich
Christopher McCray_1
Honored Contributor

Re: I need copy files by FTP with all the attributes

Here is a document on setting up anonymous ftp for 10.x

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000046112373

Check out the -u option with ftpd (man ftpd) to see if this will work for you on your system.

Hope this helps

Chris
It wasn't me!!!!
Shannon Petry
Honored Contributor

Re: I need copy files by FTP with all the attributes

The ftpaccess file is only available for wu-ftpd. This is a download package from the hp porting center and NOT supported by HP in 10.20, but is fully supported and shipped in version 11.X.
proftpd uses a different config file (and I prefer it but can't get it to run on HP-UX ).

chmod is supported by wu-ftpd and proftpd by config entry. (Default is off because it is unsafe).
umask command is supported by wu-ftpd and proftpd. If unconfigured the system default is used. (0022)

As another user said, rsync is a good alternative and even rcp supports a -p option for permissions. Best IMHO for this is OpenSSH scp which supports permissions as well as transfers in an encrypted tunnel. Anonymous ftp is not really pleasant for data transfers as it is in secure.

Regards,
Shannon
Microsoft. When do you want a virus today?