- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 3rd party app. creates files as rw-rw-rw
Operating System - HP-UX
1748265
Members
4153
Online
108760
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-2011 05:43 AM
тАО02-09-2011 05:43 AM
I have HPUX 11i servers that are running a third party softaware (Autosys) that is creating files as rw-rw-rw. The process is started from inetd. The umask is set to 022. Why are these files being created this way and is there a way to avoid creating these files with these permissions.
Thank you in advance.
Thank you in advance.
nrip
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2011 06:23 AM
тАО02-09-2011 06:23 AM
Solution
Nancy,
If you look in the shell code for the inetd startup progran /sbin/init.d/inetd you will see the following code:
mask=`umask`
umask 000
if [ -z "$INETD" ] || [ "$INETD" -ne 0 ]; then
[ -x /usr/sbin/inetd ] && /usr/sbin/inetd $INETD_ARGS
set_return
if [ $rval -eq 0 ]; then
echo "Internet Services started"
else
echo "Unable to start Internet Services"
fi
else
echo "Internet Services Daemon is disabled"
rval=2
fi
umask $mask
As you can see, when inetd is started, umask is set to 000. This is deliberate, and is supposed to make the umask for any daemon started by inetd neutral (well written daemons should never assume a umask anyway).
I don't know Autosys as a product, but a quick google suggests you can set a umask for autosys in /etc/auto.profile ?
Otherwise you could of course change this in the /sbin/init.d/inetd code, but you will need to be aware that this will affect all daemons started by inetd (with unknown consequences I guess), and any patches or updates to inetd may overwrite this. I guess it might also be possible to produce a small wrapper for autosys which is referenced in the /etc/inetd.conf file instead - not having autosys of course I can't suggest how you would go about that.
HTH
Duncan
I am an HPE Employee
If you look in the shell code for the inetd startup progran /sbin/init.d/inetd you will see the following code:
mask=`umask`
umask 000
if [ -z "$INETD" ] || [ "$INETD" -ne 0 ]; then
[ -x /usr/sbin/inetd ] && /usr/sbin/inetd $INETD_ARGS
set_return
if [ $rval -eq 0 ]; then
echo "Internet Services started"
else
echo "Unable to start Internet Services"
fi
else
echo "Internet Services Daemon is disabled"
rval=2
fi
umask $mask
As you can see, when inetd is started, umask is set to 000. This is deliberate, and is supposed to make the umask for any daemon started by inetd neutral (well written daemons should never assume a umask anyway).
I don't know Autosys as a product, but a quick google suggests you can set a umask for autosys in /etc/auto.profile ?
Otherwise you could of course change this in the /sbin/init.d/inetd code, but you will need to be aware that this will affect all daemons started by inetd (with unknown consequences I guess), and any patches or updates to inetd may overwrite this. I guess it might also be possible to produce a small wrapper for autosys which is referenced in the /etc/inetd.conf file instead - not having autosys of course I can't suggest how you would go about that.
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2011 11:59 AM
тАО02-09-2011 11:59 AM
Re: 3rd party app. creates files as rw-rw-rw
Thank you for the reply. Exactly what I was looking for
nrip
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP