- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change permission to 755
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
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
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
тАО02-25-2011 12:35 AM
тАО02-25-2011 12:35 AM
Re: Change permission to 755
The umask mask command sets a new file mode creation mask **for the current shell execution environment**.
In your case you are setting **whole** file creation for your active session to 777 file mode, this is very risky concerning system security.
Please carefully read the documentation about:
#man umask
Security practices suggest an umask 022 mode.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:43 AM
тАО02-25-2011 12:43 AM
Re: Change permission to 755
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:56 AM
тАО02-25-2011 12:56 AM
Re: Change permission to 755
I've done that on the umask command. It won't corrupt the file. What is the different between the lchmod and the umask? Any manual.
Regards,
Chui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 01:36 AM
тАО02-25-2011 01:36 AM
Re: Change permission to 755
Looks at what Clay stated.
The system call chmod() follows the symbolic link and thus does not operate on the symbolic link directly. Similarly, the symlink() system call does not allow a mode argument so that don't work neither. However, there is an UNDOCUMENTED system call, lchmod(), that does operate directly on the symbolic link.
umask - set or display the file mode creation mask.
The mask affects the initial value of the
file mode (permission) bits for subsequently created files.
So umask sets the default file permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 01:51 AM
тАО02-25-2011 01:51 AM
Re: Change permission to 755
Thanks for the help.
Regards,
Chui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:28 PM
тАО02-25-2011 12:28 PM
Re: Change permission to 755
Only if you remove then recreate the symlink.
Since you only want to change umask for this one file, you may want to put this in a script so the old umask is restored.
- « Previous
-
- 1
- 2
- Next »