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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
Why not try changing umask to 022?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.