- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SCP permission for incoming files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2010 08:22 PM
тАО12-29-2010 08:22 PM
While SCP a file in one of our server we are facing permission problem, when I try to get a file from other server through SCP the file permission is 7000 but we want 644. where I have to change the permission for incoming file? the umask value is my .profile is 022. Please guide me to solve the problem.
Regards,
Ahmed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2010 08:44 PM
тАО12-29-2010 08:44 PM
Re: SCP permission for incoming files
Not a very detailed description of anything.
uname -a
ssh -V
> While SCP a file [...]
As usual, showing an actual command with its
actual output can be more helpful than vague
descriptions or interpretations.
What are the permissions of the file on its
source system?
ls -l
> Please guide me to solve the problem.
Please show what you're doing, on what.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2010 04:25 AM
тАО12-30-2010 04:25 AM
SolutionHave a look at the 'SftpUmask' parameter in the sshd_config file. On my HP-UX server the file is /etc/opt/ssh/sshd_config.
If you specify:
SftpUmask 007
in the sshd_config file and then stop and restart the SSH daemon, I think this should do what you want.
Have a look at the sshd_config man page for more details.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1410258
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2010 07:25 AM
тАО12-30-2010 07:25 AM
Re: SCP permission for incoming files
Are you saying that the ll command shows something like this:
---S--S--- 1 blh users 0 Dec 30 10:13 abc
Or did you mean that the mode is 700 and looks like this:
-rwx------ 1 blh users 0 Dec 30 10:13 abc
Is the file mode correct on your local system correct (ie, 644). The use the -p option with scp to preserve the mode:
scp -p myfile remoteserver:/somedirectory
Otherwise, use the option in sshd.conf on the remote server to set the default mode.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2010 05:27 PM
тАО12-30-2010 05:27 PM
Re: SCP permission for incoming files
use scop -p option source destination
or
owner of the file is same as the user who deos scp? please check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2010 08:05 AM
тАО12-31-2010 08:05 AM
Re: SCP permission for incoming files
dear rariasn,
I did a quick test with the change as you suggested and it looks working.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 02:58 PM
тАО01-03-2011 02:58 PM
Re: SCP permission for incoming files
My aplogies, small correction in my previous post scop=scp
use scp -p option source destination
or
owner of the file is same as the user who deos scp? please check