scp file to HPUX 11.31 box generating perms 600 and should be 644

We are trying to scp a file from an 11.11 system to an 11.31 system. We have multiple 11.31 system that properly produce file permissions on the new file of 644. There is one system 11.31 that produced permissions of 600. Knowing that this is a similar load of 11.31 to our other systems, this makes no sense. The default profile has umask 0. Also we know that scp does not use a profile as it does not source the profile of the user or the default profile.

I have compared the sshd_config and ssh_config files to other systems and find no difference.

I have also tried SftpUmask in sshd_config with no luck.

How do I get the 11.31 receiving system to produce the proper 644 permissions?

The system is running HP-UX Secure Shell-A.04.70.011
LVL 3
Craig SharpLead Enginneer - Unix Server TeamAsked:
Who is Participating?
 
omarfaridConnect With a Mentor Commented:
Why not try changing umask to 022?
0
 
Craig SharpLead Enginneer - Unix Server TeamAuthor Commented:
Normal umasks in /etc/profile or in ~/.profile has no effect on scp as it does not source the profiles.
0
 
set256Commented:
does anything change if you use the -p option?

regards,

seth
0
 
Craig SharpLead Enginneer - Unix Server TeamAuthor Commented:
HP changed the default umask in 11.31 to create perms 600.  I have no idea if they are going to change it back by patch, but a lot of users are having issues.
0
All Courses

From novice to tech pro — start learning today.