- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scp permissions problem
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
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
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
04-14-2008 07:51 AM
04-14-2008 07:51 AM
When I scp a file, it retains the permissions that it had on the source box.
I have a case where a file is scp'ed from a Windows machine and it ends up as 700 permissions, while I would like to it to be 75, which is what the umask value is set to.
Any idea why the .profile is not read by scp?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 09:44 AM
04-14-2008 09:44 AM
Solutionscp was made platform independent, it does not read .profile because not all OS' have that.
If you want to retain permissions, tar the files up first, transfer them then untar them.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 10:02 AM
04-14-2008 10:02 AM
Re: scp permissions problem
Scp is not a shell? Why would it read your
.profile?
If you use scp to copy a file from a
non-Windows system, say, an HP-UX system, do
you have the same problem? (What does this
tell you?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 10:19 AM
04-14-2008 10:19 AM
Re: scp permissions problem
2. It's not a windows thing, I get the same thing happen when I scp from hp-ux to hp-ux.
In some cases it retains the permissions, it had and in other cases it doesn't. Strange.
I set the file to 777 and once it scp'ed over it got something like 7 66,but not 777.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 10:57 AM
04-14-2008 10:57 AM
Re: scp permissions problem
> cases it doesn't.
This might be interesting if you offered some
kind of description of what's different
between the cases.
> Strange.
No, _strange_ would be expecting anyone to
provide any help based on virtually no
information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 12:57 PM
04-14-2008 12:57 PM
Re: scp permissions problem
a) AFAIK, windows "permissions" don't map directly to unix permissions.
b) If you've got a file with 777 permissions, and want those permissions retained, then use "scp -p"
c) You said you set the umask to 75, which is the desired permission???? I hope that's at typo. If not, you need to re-read how umask works.
we won't even discuss *why* 777 *shouldn't* be used