HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file permission set while doing sftp
Operating System - HP-UX
1833176
Members
3051
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-29-2008 11:32 PM
05-29-2008 11:32 PM
file permission set while doing sftp
Hello,
we are doing file transfer using sftp process from one HP-UX server to another HP-UX server.
We need some clarification on the file permission that will get set at the receiving end.
Sending end:
permission filename
-rwxrwxrwx(777) a
Umask set : 033
Receiving end:
-rwxr-x---(750) a
Umask set : 033
The requirement is, at the receiving end, the file should have permission like -rw-rw-rw- (666).
Could you please let me know how this can be done?
we are doing file transfer using sftp process from one HP-UX server to another HP-UX server.
We need some clarification on the file permission that will get set at the receiving end.
Sending end:
permission filename
-rwxrwxrwx(777) a
Umask set : 033
Receiving end:
-rwxr-x---(750) a
Umask set : 033
The requirement is, at the receiving end, the file should have permission like -rw-rw-rw- (666).
Could you please let me know how this can be done?
- Tags:
- sftp
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2008 02:03 AM
05-30-2008 02:03 AM
Re: file permission set while doing sftp
>Receiving end: -rwxr-x---(750) a
>Umask set: 033
From your values and assuming 777 is copied over, umask seems to be 27.
You really should be starting out with 666 and not your 777.
>Umask set: 033
From your values and assuming 777 is copied over, umask seems to be 27.
You really should be starting out with 666 and not your 777.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2008 03:23 AM
05-30-2008 03:23 AM
Re: file permission set while doing sftp
If I send with
-rw-rw-rw- a
then the file gets delivered with
-rw-r----- a
I need to have 664 or 644 file permission at the receiving end.
-rw-rw-rw- a
then the file gets delivered with
-rw-r----- a
I need to have 664 or 644 file permission at the receiving end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2008 03:41 AM
05-30-2008 03:41 AM
Re: file permission set while doing sftp
>I need to have 664 or 644 file permission at the receiving end.
Then of course your umask must be changed from 27 to 22.
Why don't you use this sftp command:
lumask umask: Set local umask to umask.
Then of course your umask must be changed from 27 to 22.
Why don't you use this sftp command:
lumask umask: Set local umask to umask.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP