Operating System - HP-UX
1836997 Members
2159 Online
110111 Solutions
New Discussion

file permission 600 for scp on 11.23

 
oogiejonz
Occasional Contributor

file permission 600 for scp on 11.23

We just ported some apps from an RP8420 running 11.11 to an RX7640 running 11.23. We have a script doing a pscp from a windows server to the unix server. The file then has to be modified by a different user ID from the ID that generated the files. On 11.11, the files were created as 660, but on 11.23 they are being created as 600, so the other userID can't access the files. The permissions can't be changed via umask, because scp never access .profile. Is there a way to change this default 600 setting to 660 on 11.23?
2 REPLIES 2
Tim Nelson
Honored Contributor

Re: file permission 600 for scp on 11.23

Try setting the umask in /opt/ssh/etc/sshd.conf

SftpUmask 002
Kenan Erdey
Honored Contributor

Re: file permission 600 for scp on 11.23

Hi,

try running pscp with -p option to preserve permisssions.

Kenan.
Computers have lots of memory but no imagination