- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File owner 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
Discussions
Discussions
Forums
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
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-02-2009 10:18 PM
тАО03-02-2009 10:18 PM
p.s. what I do is run a crontab job chmod 66 my_file , except this method , what can i do ? thx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2009 10:53 PM
тАО03-02-2009 10:53 PM
Solution>if I want the file mode is keep to "666" even it have been updated by user , what can i do ?
if you set the permission 666 (4+2), 4 stands for READ permission and 2 for WRITE permissions, that means you have given write permissions to the Owner, group and everybody else for that file.
if you dont want to permit group members as well as others, remove write permissions by simply
#chmod g-w,o-w
OR
#chmod 644
go for "man chmod" for more info.
WR,
prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2009 11:01 PM
тАО03-02-2009 11:01 PM
Re: File owner mode
I think the same user id is shared by the many people. The file permission can be changed by owner of the file or by root user. If you are sharing the same user id with many people then change the ownership of this file to root or some other user. As long as a file has 666, it is possible to write on to this file by any user. Remember that when you grant write permission to all, any body can delete it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2009 11:01 PM
тАО03-02-2009 11:01 PM
Re: File owner mode
You may need to find why they are changing the permission of the file. You could restrict this.
It might be easy if you could write a script in the application itself to ask a warning to the user to change the permission to 666 once they are done with their jobs.
NOTE: The users are changing permission for some specific reason and you changing the permission again to 666 might well be like "user not changing the permission"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2009 09:25 AM
тАО03-03-2009 09:25 AM
Re: File owner mode
That's incorrect, you can't remove the file unless the directory is writable but you can delete the contents.
>Avinash: You may need to find why they are changing the permission of the file.
Possibly the editor or the tool is recreating the file vs overwriting it?