- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to set the default permission as "rwx" pls.
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
08-03-2007 01:20 AM
08-03-2007 01:20 AM
how to set the default permission as "rwx" pls.
India:murali $ ls -l
total 4
-rw-rw-r-- 1 murali users 47 Aug 3 18:41 abc
-rw-rw-r-- 1 murali users 116 Aug 3 18:33 asdsa
Thank you,
Ramana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:24 AM
08-03-2007 01:24 AM
Re: how to set the default permission as "rwx" pls.
=> umask 774 (fe)
check also 'man umask'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:27 AM
08-03-2007 01:27 AM
Re: how to set the default permission as "rwx" pls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:28 AM
08-03-2007 01:28 AM
Re: how to set the default permission as "rwx" pls.
754
user is rwx
group is r-x
other is r
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 02:29 AM
08-03-2007 02:29 AM
Re: how to set the default permission as "rwx" pls.
-rwxrwx---, a umask of 007 would be required; however, that still won't work because there are two things in play when files are created: mode and umask. Umask then "subtracts" (actually a bitwise NAND) from the mode to yield the effective mode (permissions) of the new file. However, umask cannot "subtract" what is not already there. The mode for regular files under the shell is -rw-rw-rw- (666) and for directories it is -rwxrwxrwx (777). No setting of umask will ever set the execute bit on a file created in the shell. You must do an explicit chmod after the file is created. If you are creating a file under other circumstances (Perl, C, ...) then you can assert the mode of the file as you create it and do it without an explicit chmod.