- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User mode
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
08-17-2005 01:59 PM
08-17-2005 01:59 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 02:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 02:27 PM
08-17-2005 02:27 PM
Re: User mode
default file permission: -rw-rw-rw
default dir permission: -rwxrwxrwx
if you apply umkas of 022
access permissions of the new file created would be = 666 - 022 = 644 (rw-r--r--)
for dir = 777 - 022 = 755 (rwxr-xr-x)
If you need to set an executable bit from a shell created file, you must issue an explicit chmod after first creating the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 02:48 PM
08-17-2005 02:48 PM
Re: User mode
I understand set the umask can change the file permission , but if change it , all the user created files are in the new mode ( 664 ) , I just want the files in the specific directory is 664 , not all the files in the system , could suggest how to make it ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 04:33 PM
08-17-2005 04:33 PM
Re: User mode
To achieve what you want the only way is to run a cron job and you will have to bear with the 1 minute delay because umask is for the id only and not for the filesystem
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 04:39 PM
08-17-2005 04:39 PM
Re: User mode
example script file:
#!/bin/ksh
touch /newdir/new-file
chmod 664 /newdir/new-file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 05:39 PM
08-17-2005 05:39 PM
Re: User mode
This will allow all members of the group to modify the directory, this will allow them the ability to write to any file in the directory. This would allow them to overwrite the 644 file settings and delete the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 06:21 PM
08-17-2005 06:21 PM
Re: User mode
alias for md, touch, and the commands creating files and directories
if pwd = "directory_you_wanted" && user ="you_wanted"
if $1==directory
chmod 774 $1
else
chmod 664 $1
fi
fi