- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: change file 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
05-12-2005 10:46 PM
05-12-2005 10:46 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 10:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 11:05 PM
05-12-2005 11:05 PM
Re: change file permission
If you are talking about the same file, all you need to do for users to overwrite it is to give the write permission for all users (if they belong to the same group, you just need to set the "g" permission, not the o"") to this directory:
#cd /tmp
#chmod -R ugo+rxw /temp
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 11:10 PM
05-12-2005 11:10 PM
Re: change file permission
what I want is to make sure all the file under /tmp/temp are 644 & user1:edp , once any user overwrite/create a file to this directory , it will be changed to 644 & user1:edp .
not the same file , I want ALL the files .
Thx in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 11:45 PM
05-12-2005 11:45 PM
Re: change file permission
I think the better way to do this is just allow the user user1 to write to this /tmp/temp directory.
But you can always allow everyone and schedule a cron job (I don't know any way of doing this at file creation...) executing every 10 minutes, for example, that changes all the /tmp/temp files to user1:edp :
01,11,21,31,41,51 * * * * $HOME/scripts/change_tempfiles_permissions.sh
And change_tempfiles_permissions.sh has:
chown -R user1 /tmp/temp
chgrp -R edp /tmp/temp
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 12:15 AM
05-13-2005 12:15 AM
Re: change file permission
Is this thread related to the one you lauched a week ago:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=872149.?
Files created by a user, will always be the owner of the file.
GL
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2005 01:48 AM
05-13-2005 01:48 AM
Re: change file permission
Eric's method (cron job) seems only change it in a certain of time , is there method that can change it once it was created.
thx louis , i can't go to the link .