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
05-02-2006 06:28 AM
05-02-2006 06:28 AM
umaks
i have a hp box where umask value is set to 027. when i create a file in my home directory, the default permission is set to rw-r--
but, it should be rwx-rx---- which means (777 - 027)
if i create a directory in my home directory, the default permission is rwx-rx----.
Is there any way we can set some parameter so that i have the same default permission for file too.
if for file it is ( 666 - 027 ) which rw-r-----, it should not be right format. Please advice.
Cheers
Indrajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 06:36 AM
05-02-2006 06:36 AM
Re: umaks
So, what you are seeing is absolutely correct.
Unless you write a C program, you cannot control the default permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 06:38 AM
05-02-2006 06:38 AM
Re: umaks
umask is set in either /etc/profile and/or your own .profile
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 06:40 AM
05-02-2006 06:40 AM
Re: umaks
This behavior is normal and cannot be changed for files and directories created by the shell.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 10:09 AM
05-02-2006 10:09 AM
Re: umaks
In order to set the execute bit on a regular file in the shell, an explicit chmod is required after the file is created.
This can be a one-step operation under C, Perl, etc. but not in the shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 12:25 AM
05-04-2006 12:25 AM
Re: umaks
Thanks all of you. i appreciate you help.
Cheers
Indrajit Roy.