- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- default 'rw-rw-rw-' permission?
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
10-15-2001 08:06 PM
10-15-2001 08:06 PM
default 'rw-rw-rw-' permission?
Thanks !
Regards,
Shirley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2001 08:15 PM
10-15-2001 08:15 PM
Re: default 'rw-rw-rw-' permission?
You need to set the user's 'umask'
You should have at least a default system 'umask' in any case. This will change the mask of files being created to 644 (rw-r--r--)
In your /etc/profile add a line which reads:
umask 022
This will set this as system wide, you can of
course do this on a user by user basis should
you wish. I would suspect that your system
perhaps will many files that are like this
666 (rw-rw-rw) that you will need to fix.
To find them,
# find / -type f -perm 666 >/tmp/my666files
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2001 08:29 PM
10-15-2001 08:29 PM
Re: default 'rw-rw-rw-' permission?
I don't believe you can limit a certain umask for certain directories.
By default if you don't set a umask, it is set to 000 which means when you touch a file, it gets created with rw-rw-rw(666) permissions.
If you want to set this permissions only in this directory, you may have to write a script(run through a cron job) which periodically goes and changes the permissions.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 01:09 AM
10-16-2001 01:09 AM
Re: default 'rw-rw-rw-' permission?
However, there is not way to force the permissions from a shell session in a particular directory, its either set for everything or for nothing.
However if this directory is a samba share or an ftp dropoff then you can modifications to those applications, i.e. samba and ftpd, to force permissions for any file/directory created under this directory, but that only for files created in a samba or ftp session.
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 07:50 AM
10-16-2001 07:50 AM
Re: default 'rw-rw-rw-' permission?
this is pretty easy with the proper environment :-)
But you do not have that environment, I guess :-(
The answer would be to use the "DFS" (Distributed File System) of "DCE" (Distributed Computing Environment), where you have additional permissions, especially "Initial Container ACL".
But since HP decided to NOT support it with HP-UX 11.x, you will not be able to use this feature :-(
Sorry,
Wodisch