- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Default file permissions.
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
09-27-2001 06:31 AM
09-27-2001 06:31 AM
Default file permissions.
-rw-r--r-- 1 ora64 dba 11 Sep 27 10:17 gulam.txt
But I would like the default permission to be as follows instead:
-rw-rw-rw- 1 ora64 dba 11 Sep 27 10:17 gulam.txt
Please let me know how to get this done.
Thanks,
Gulam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 06:38 AM
09-27-2001 06:38 AM
Re: Default file permissions.
umask 000
touch tt
ls -l /tmp/tt (it will now be -rw-rw-rw-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 06:42 AM
09-27-2001 06:42 AM
Re: Default file permissions.
I rather like how it works now because your umask is set to 022 - this is the preferred level of security.
To make the change you requested
umask 000 which you can set in your .profile.
The best way is something like this in scripts which create files:
savemask=`umask 0000`
do you stuff here
umask ${savemask}
This sets your umask to 0000 and saves ther original value. When you are finished, it resets umasks back to the safer value.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 06:42 AM
09-27-2001 06:42 AM
Re: Default file permissions.
Anyway, to change the default permissions you need to change your umask to 000.
To do that use the command: umask 000
You can put this in your .profile if you want it to be your default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 06:43 AM
09-27-2001 06:43 AM
Re: Default file permissions.
Run "umask 000" - put this in your .profile to make it permanent.
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 06:46 AM
09-27-2001 06:46 AM
Re: Default file permissions.
While you can certainly set your umask in your $HOME/.profile to 000 as others have indicated, I would give consideration to using a mask value of 022 or 027 as the default and 'chmod'ing permissions on an individual (script) basis. Your auditors will like you much better, too ;-)
Regards!
...JRF...