- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Create file with specific 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
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
06-28-2007 04:36 PM
06-28-2007 04:36 PM
Create file with specific mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 04:59 PM
06-28-2007 04:59 PM
Re: Create file with specific mode
This may create security issues elsewhere so may not be a good solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 05:08 PM
06-28-2007 05:08 PM
Re: Create file with specific mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 01:44 PM
07-02-2007 01:44 PM
Re: Create file with specific mode
I also don't want change the umask , it is not safe , you ask why need change the permission to 666 , the reason is : now the umask is 0022 , we have a share folder that everyone(they are different group) need to update the files inside, but now can't , so I would have the request. thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 02:09 PM
07-02-2007 02:09 PM
Re: Create file with specific mode
I assume that using ACLs could also be used but may be just as onerous.
If this directory isn't over NFS, you could have a root crontab that does the chmod every so often.
Of course if you own the application that creates the files, you can put the chmod into it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 02:38 PM
07-02-2007 02:38 PM
Re: Create file with specific mode
You may also try setting sticky bit so that the each users' files wont get removed by the other user.similar to /tmp file system
drwxrwxrwt 26 bin bin 18432 Jul 2 22:35 /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 05:23 PM
07-02-2007 05:23 PM
Re: Create file with specific mode
1) Set cron entries so that it will convert the file according to your need
2) Put a script in .profile file so once the
the person load the profile file attributes will get change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 07:36 PM
07-02-2007 07:36 PM
Re: Create file with specific mode
If I understand correctly, you want files written to a specific directory to have 666 perms, while you do not want the same for any other directories. Its a bit tricky, because you cannot control the program which is writing the file to use 666 to write to a particular dir.
In that case I agree with the solution of scheduling a job through cron to change perm to 666.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 01:19 AM
07-03-2007 01:19 AM