- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to add 'x' privilege by default when creat...
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
12-09-2004 01:47 AM
12-09-2004 01:47 AM
how can i deal that?
umask 000 only useful with directory
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 01:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 01:53 AM
12-09-2004 01:53 AM
Re: how to add 'x' privilege by default when create a new file?
On a regular file a umask of 000 will give you permissions of 666 (-rw-rw-rw-).
The key question is WHY does the user want 777 permissions? The 'x' bit is only useful for executable things like programs and shell scripts. The 'x' bit does not give you any thing more than than '666' permissions other than being able to do a ./filename to execute something.
If that file isn't a program or shell script or something very similar the 'x' permission bit is useless.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 01:54 AM
12-09-2004 01:54 AM
Re: how to add 'x' privilege by default when create a new file?
A human can program a script to do this for him, but Unix security believes that default executable creation is an enormous security risk.
You'll have to write a script to change the permissions after the fact. cron can run it for you.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:10 AM
12-09-2004 02:10 AM
Re: how to add 'x' privilege by default when create a new file?
It cannot be done. Files are created with r & w permissions by default. The x has to be added manually.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:11 AM
12-09-2004 02:11 AM
Re: how to add 'x' privilege by default when create a new file?
.. And gave up.
But there is nothing stopping you to create an alias like cm7='chmod 777 '
then try cm7
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:38 AM
12-10-2004 05:38 AM
Re: how to add 'x' privilege by default when create a new file?
And even more of a bad idea, to make them world-executable!
It sounds suspicious to me.
I have an alias:
alias go='chmod u+x '
that I use all the time for scripts (go myscript.sh).
If he wants to put all his executables in a directory, he could do
chmod 770 *
(I'd still question the need for world-executable permission. If there are things the world needs to run, put them in something like /usr/local/bin)
It's possible he doesn't know that he doesn't need 777, that 770 is fine (everybody in the group can execute) or even 700 (just him).