Operating System - HP-UX
1833589 Members
4417 Online
110061 Solutions
New Discussion

ftp file permission problem

 
DC.
Occasional Contributor

ftp file permission problem

i have created a normal user in hp-unix using which files are ftped from diffrent server. the file permissions are coming as
-rw-r----- 1 abc xyz 10239898 Nov 20 12:27 test2002.txt

where as we require the permission to be

-rw-rw---- 1 abc xyz 10239898 Nov 20 12:27 test2002.txt

Is there any way to achieve this?
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: ftp file permission problem

Peter Godron
Honored Contributor

Re: ftp file permission problem

Hi,
I would recommand the user chmoding the files after transmission. That way the user remembers to set the permissions he wants, rather than a default.

Also can you please complete/reward your other thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1074653
Coolmar
Esteemed Contributor

Re: ftp file permission problem

You could also try using scp. It is more secure than FTP and you can use the "-p" option to keep the permissions:

scp -p /dir/file serverb:/dir
Peter Godron
Honored Contributor

Re: ftp file permission problem

Could you please complete the thread by awarding points to helpful answers and summarising the solution for you.
This will help resolution of similar problems in the future.

Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !