Link to home
Start Free TrialLog in
Avatar of Craig Sharp
Craig SharpFlag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Craig Sharp

ASKER

Normal umasks in /etc/profile or in ~/.profile has no effect on scp as it does not source the profiles.
Avatar of set256
set256

does anything change if you use the -p option?

regards,

seth
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.