- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File permission is changed.
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
04-04-2005 08:54 PM
04-04-2005 08:54 PM
How can we set the permission to be rw-rw-r- ?
Pls give me some advice regarding of this problem.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2005 09:06 PM
04-04-2005 09:06 PM
Re: File permission is changed.
If you are creating a file rw-r-----, that suggest your umask is set to 0133, if you want rw-rw-rw then it should be something like 0111. Maybe your process should change it, or call chmod on the file when it has finished?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2005 09:20 PM
04-04-2005 09:20 PM
Re: File permission is changed.
Next time, don't forgot use "-p" option....
With -p option, the file permission will be keep......
Regard,
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 12:59 PM
04-05-2005 12:59 PM
Re: File permission is changed.
open users's profile (.profile) and add Umask
#vi .profile
UMASK 0113
->save and then logout
Next time your script will use Umask to mask you file.
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 03:45 PM
04-05-2005 03:45 PM
Re: File permission is changed.
You subract the defined umask variable from the above values to determine the perms on the file created:
To create a file with rw-rw-r--, your umask needs to be 0002.
to create a file with rw-r----, your umask needs to be 0026.
Set this in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 07:20 PM
04-11-2005 07:20 PM
Re: File permission is changed.
In which script I need to add the umask 0002 ?
For you information, the directory that coz permission actually under oracle user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 07:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 07:41 PM
04-11-2005 07:41 PM
Re: File permission is changed.
If I edit the umask 0002 under /home/oracle/.profile file, is it will change permission rw-rw-r to all the files and directory under oracle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 07:45 PM
04-11-2005 07:45 PM