- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX 11.X file permisions query
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
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
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
тАО02-09-2004 05:27 PM
тАО02-09-2004 05:27 PM
HPUX 11.X file permisions query
One of our daemon during runtime creates files with 666 permissions.But at the customer site we observed that it creates 644. I
checked umask on the customer system. It is same as mine 022. I don't see any issue in that. All our daemons run as root.
All these files are opened and processed.There are roughly 19000 files.All the file descriptors are opened and closed properly while processing.While some of the files gets processed fine with the above permission. But randomly it fails at some file.After that all other files fails with permission denied EACCES 13 while trying to open those files for processing.
What can be the reason ? Any pointers are highly appreciated ...
Thanks and Regards
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 05:36 PM
тАО02-09-2004 05:36 PM
Re: HPUX 11.X file permisions query
Is that a script which does this?
Then check that out whether any permission handling is done there.
REvert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 05:40 PM
тАО02-09-2004 05:40 PM
Re: HPUX 11.X file permisions query
Firstly, does the customer site have ACL's. I'm not sure if they are relevant but I hope so because the only other thing that sort of makes sense to me is filesystem corruption.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 05:41 PM
тАО02-09-2004 05:41 PM
Re: HPUX 11.X file permisions query
My guess based on this info is nfiles.
nfiles/nproc can be raised by increaseing the maxusers parameter.
sam
kernel
configurable parameters
bump up maxusers, process new kernel boot.
There are other possible causes including poorly written "daemons"
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 05:46 PM
тАО02-09-2004 05:46 PM
Re: HPUX 11.X file permisions query
The files created on customer system are having 644 most of the times.
The problem is happening on 3 of the customer systems.How can I confirm is it because of file system corruption.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 05:50 PM
тАО02-09-2004 05:50 PM
Re: HPUX 11.X file permisions query
If the case was of any file system problem check this log for any errors!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 05:51 PM
тАО02-09-2004 05:51 PM
Re: HPUX 11.X file permisions query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 06:01 PM
тАО02-09-2004 06:01 PM
Re: HPUX 11.X file permisions query
I see the following
What does this mean ?
NSTATS 1074494784 1073904383 A=2506 PTR=172526
XSTATS 1074494784 1073904383 RR=3406 RNXD=3405 RFwdR=3406 RDupR=0 RFail=0 RFErr=0 RErr=0 RAXFR=0 RLame=0 ROpts=0 SSysQ=22 SAns=15765 SFwdQ=158483 SDupQ=1240502 SErr=0 RQ=175032 RIQ=0 RFwdQ=158483 RDupQ=784 RTCP=0 SFwdR=3406 SFail=154987 SFErr=0 SNaAns=0 SNXD=15744
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 06:04 PM
тАО02-09-2004 06:04 PM
Re: HPUX 11.X file permisions query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 06:26 PM
тАО02-09-2004 06:26 PM
Re: HPUX 11.X file permisions query
you talk about daemons. So these are started at boot time. How do you check the umask setting?
I think it's not enough to login as root and type 'umask'. The init process, that starts all daemons using rc, but it doesn't use something like /etc/profile for setting some variables or the umask.
Did you check the startup scripts of these daemons? What happens if you just add a line 'umask 022' to the startup script?
I have no solution for your access denied error.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 07:44 PM
тАО02-09-2004 07:44 PM
Re: HPUX 11.X file permisions query
These daemons are started at boot time. But the customer stops and starts the daemons everyday to take some backup. I will check the customer to set proper umask for the shell in which they are starting the daemons.
What else cam be the reasons for Permssion Access denied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 08:43 PM
тАО02-09-2004 08:43 PM
Re: HPUX 11.X file permisions query
reading through the replies:
- If the error occurs for a file, opening all subsequent files give an error. I think this means your daemon is 'poorly written'. Are you sure the files are always closed? Can you trace opening and closing files to make really sure all files opened are also closed?
- Not an NFS filesystem, I assume.
- If you suspect the filesystem, unmount it and do an fsck.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2004 04:30 PM
тАО02-15-2004 04:30 PM