- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- manage file
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-08-2005 02:13 PM
03-08-2005 02:13 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 02:35 PM
03-08-2005 02:35 PM
Re: manage file
1. Set sticky bit on this directory. This way only the owner of the file can delete it. chmod 1777 is a normal permission set to world writable permission. in this way you can share this folder among users with a good security since only the owners of the file will be able to delete it. But any one can create new files.
2.set the umask 111 so that the default permission will be 666 as u mentioned. Put umask 777.
Can be added to /etc/profile either of the following way.
umask u=rwx,g=rx,o=rx symbolic mode
umask a=rx,u+w symbolic mode
umask 022 numeric mode
HTH.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 02:37 PM
03-08-2005 02:37 PM
Re: manage file
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 02:47 PM
03-08-2005 02:47 PM
Re: manage file
Because the file ( eg. tpaaa.txt , tpbbb.txt ) is generated by system , the owner is root:root , the permission is 644 , if I want to let all users can delete this file , what can I do ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 02:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 03:12 PM
03-08-2005 03:12 PM
Re: manage file
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 03:35 PM
03-08-2005 03:35 PM
Re: manage file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 04:38 PM
03-08-2005 04:38 PM
Re: manage file
If I want to let a specific user eg. edp_usr:EDP can delete / create any file at a directory eg. /home/EDP , even what permission/owner of the file in the dirctory , could suggest what can I do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 05:11 PM
03-08-2005 05:11 PM
Re: manage file
If it a home directory of a user then ,he will have the permissions to delete files by default.
You can set permission of 770 to this directory. Make sure that the edp user falls under the group which is having write access to this directory.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 06:44 PM
03-08-2005 06:44 PM
Re: manage file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 06:54 PM
03-08-2005 06:54 PM
Re: manage file
the 17777 permission is called as sticky bit. can be set on any desired directoty.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 01:20 AM
03-10-2005 01:20 AM
Re: manage file
I assume the files is machine created ... so why not in the script which creates them which should obviously know the filename ... just add a chmod to the appropriate script.
Alternatively ... just use a cronjob to do this "chmod" say every 30 minutes ... wont be on the fly but cleanups should be possible.
HTH
Gerhard