- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Making default permission of App generated files
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
07-31-2003 04:43 PM
07-31-2003 04:43 PM
My application generates log files which are created with '-rw-rw-rw' permissions.
I've already set my umask as - "022" but still the log files are created as "666". Can you indicate if I'm missing something somewhere?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:02 PM
07-31-2003 05:02 PM
Solutione.g.
/sbin/init.d/myapplication file starts my application. Inside it I set some variables like PATH's and umask. See if this helps. If not you have to look depper into the application, hopefully not at the binary level. If you can't find where, contact the vendor of the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:06 PM
07-31-2003 05:06 PM
Re: Making default permission of App generated files
Now if this is not happening, then definately its your application which is changing the umask again to 00. I think you have a look at the application.
Also one test can be done, set umask to 022 and then run your application, exit from the application to see what umask it has got not, that will show if the umask is changed in the program or not.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:07 PM
07-31-2003 05:07 PM
Re: Making default permission of App generated files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:13 PM
07-31-2003 05:13 PM
Re: Making default permission of App generated files
# touch test.touch
# echo hello > test.echo
# vi test.vi
# ll test.*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:26 PM
07-31-2003 05:26 PM
Re: Making default permission of App generated files
I logged in as App owner and created the files as indicated by you, the file permissions are ok "666" "-rw-r--r--".
-rw-r--r-- 1 skv skv 6 Aug 1 09:24 test.echo
-rw-r--r-- 1 skv skv 0 Aug 1 09:23 test.touch
-rw-r--r-- 1 skv skv 11 Aug 1 09:24 test.vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:30 PM
07-31-2003 05:30 PM
Re: Making default permission of App generated files
By loging as the application user just runs its .profile and takes what ever umask you defined.
What i mean is run the application, terminate it and then see the umask, because if its a C/perl application you can change the permission of logfiles in the application ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:33 PM
07-31-2003 05:33 PM
Re: Making default permission of App generated files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 07:04 PM
07-31-2003 07:04 PM
Re: Making default permission of App generated files
Do you try to run a cronjob to output something to logfile and see the logfile's permission is "666" or "644"?
Is there other App running on the problem server? If yes, how about their behavior?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 10:40 PM
08-05-2003 10:40 PM