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
07-19-2011 07:23 AM
07-19-2011 07:23 AM
CHMOD
Hi,
I just created a new filesystem.I want to give full permission to all the files and directories creating inside this FS.How to achieve this.I tried with chmod -R 777 <FS>.But its not working.Please help me out...
- Tags:
- chmod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 07:31 AM
07-19-2011 07:31 AM
Re: CHMOD
Hi:
"But its not working" doesn't tell us a thing! What are you attempting to do (or see)? Where you root when you did the 'chmod'? What isn't the way you expect it to be?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 07:34 AM
07-19-2011 07:34 AM
Re: CHMOD
thanks for the update..
i mean to say is chmod is wrking.....but if I create a new file inside this FS it is not having full permission.I want to create lot of files inside and all should be having full permission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 07:41 AM - edited 07-19-2011 07:43 AM
07-19-2011 07:41 AM - edited 07-19-2011 07:43 AM
Re: CHMOD
File creation is governed by the user's umask setting and 777 is not attainable with umask.
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 08:15 AM
07-19-2011 08:15 AM
Re: CHMOD
Hi (again):
@kunjuttan wrote:
thanks for the update..
i mean to say is chmod is wrking.....but if I create a new file inside this FS it is not having full permission.I want to create lot of files inside and all should be having full permission.
I assume that you want to be able to create files and have their permissions=777. This isn't going to be possible with the standard tools (like the shell).
When a file is created with 'open()' standard software supplies a 'mode' argument of octal 666 for files. This is built into the code and you can't change this unless you have access to the source. The effect of your 'umask' is to "subtract" from this value. Hence, a 'umask' of zero allows files thus created to have the "most open" permissions of 666.
To add execute permissons you are going to have to 'chmod' those files you want.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 01:28 PM - edited 07-19-2011 01:30 PM
07-19-2011 01:28 PM - edited 07-19-2011 01:30 PM
Re: CHMOD
>chmod -R 777 <FS>
This is a very dangerous command. You do NOT want to add execute permission to non-executable files.
And do NOT use this on any existing system filesystems.
You should make several passes using find to select various file types and use the "+" symbolic permission operator:
find <FS> -type d -exec chmod a+x + # The last "+" is for find -exec performance
chmod -R a+rw <FS>