- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: umask command ...
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
02-02-2006 02:43 PM
02-02-2006 02:43 PM
how can i do it?
Thanks, Manuales.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 02:59 PM
02-02-2006 02:59 PM
Solutione.g. umask of 0000 will create a file with rw perms for all.
Basically, the umask value is substracted from 666 for effective perms for files and umask value is subtracted from 777 for effective perms on a dir.
man umask for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 03:49 PM
02-02-2006 03:49 PM
Re: umask command ...
umask 0000?
umask 7777?
umask 6666?
umask 5555?
which one?
Thanks, Manuales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 04:01 PM
02-02-2006 04:01 PM
Re: umask command ...
You CAN NOT force a file to be created with 777 permissions. If you need the execute permission on a file it must be set manually with the chmod command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 04:04 PM
02-02-2006 04:04 PM
Re: umask command ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 05:07 PM
02-02-2006 05:07 PM
Re: umask command ...
Hi Mauales,
By default you CANNOT CREATE a file with executable permission, by setting the umask value you can make the default permission to "rw" for everyone.
But you can make it executable only by executing
#chmod
manually.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 05:15 PM
02-02-2006 05:15 PM
Re: umask command ...
We have to have executable permission in a directory for browsing or searching. Meantime, file must not have the executable permission. It has to be changed by the user or group or world wide permission for execution.
Use the method of having default umask setting and use chmod command to change mode value.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2006 04:29 AM
02-04-2006 04:29 AM
Re: umask command ...
umask can be added in users .profile or /etc/profile.
Def will be 022 on the profile.
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2006 05:22 AM
02-04-2006 05:22 AM
Re: umask command ...
As RAC noted, the manpages for 'umask' offer a reasonable explanation.
A reasonable 'umask' to set in your login profiles is 022, with 027 being a "strong" setting.
Remember that a *directory's* permissions control whether or not a file can be removed. If you have write permissions to a directory, you can remove a file that you own from it.
A directory like '/tmp', however, is often granted read-write-execute permissions for everyone. This is quite reasonable. However, the side-effect of this is that *anyone* can remove *any* file from this directory regardless of who owns it.
To limit non-root users to being able to remove only files they own, set the 'sticky' bit on the directory:
# chmod 1777 /tmp
See also my *last* comments in a similar thread where you asked a related question but closed the thread after asking but before reading:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=998150
Regards!
...JRF...