- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file permission set to ----------+
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
03-14-2002 04:22 AM
03-14-2002 04:22 AM
file permission set to ----------+
I have a problem with file permission on a HP-UX 11.0 server.
In a jfs file system the files are created with permission ----------+ (also from root).
The umask is 000.
How can I change the default permissions for new files?
By
Simone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 04:32 AM
03-14-2002 04:32 AM
Re: file permission set to ----------+
you must use the command "umask"
see man umask, it's easy
Good Luck.
Jota.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 04:37 AM
03-14-2002 04:37 AM
Re: file permission set to ----------+
Set the umask value to produce read and write permissions for the
file's owner and read permissions for all others (ls -l displays -rw-
r--r-- on newly created files):
umask u=rwx,g=rx,o=rx symbolic mode
umask a=rx,u+w symbolic mode
umask 022 numeric mode
Jota
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 04:37 AM
03-14-2002 04:37 AM
Re: file permission set to ----------+
this works easy with the command:
umask 022
this makes directories to get the permissions
rwxr-xr-x (755)
and files to get the permissions
rw-r--r-- (644)
because files are never executable for reasons of security, you have to make them executable!
allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 04:42 AM
03-14-2002 04:42 AM
Re: file permission set to ----------+
See:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5c7dabe92dabd5118ff10090279cd0f9,00.html
for an explaination.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 04:42 AM
03-14-2002 04:42 AM
Re: file permission set to ----------+
umask 022
this gives to the directories the permissions
rwxr-xr-x (755)
and files the permissions
rw-r--r-- (644)
Ciao
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:26 AM
03-14-2002 05:26 AM
Re: file permission set to ----------+
The /etc/profile is executed before every login of every user.
type "umask -S" to check the default mask.
You can aslo set umask locak profile ($HOME/.profile).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:36 AM
03-14-2002 05:36 AM
Re: file permission set to ----------+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:48 AM
03-14-2002 05:48 AM
Re: file permission set to ----------+
Thanks to all for the help.
Simone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 05:55 AM
03-14-2002 05:55 AM
Re: file permission set to ----------+
I believe "+" on the end of permissions means there are ACLs on the file. I know very little about them so I can't help with that.
It seems odd that umount and mount corrected your problem. I hope someone can post an idea about what could have been happening.
Darrell