- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- UMASK = 000 inetd init script
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
тАО08-30-2002 08:43 AM
тАО08-30-2002 08:43 AM
UMASK = 000 inetd init script
mask=`umask`
umask 000
What is the purpose of doing this? I don't see this behaviour on Solaris or Linux. Note HP does the sane thing earlier in the init process by setting the umask to 022 in /sbin/rc, but for some as yet inexplicable reason in the inetd script it resets it to 000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 09:07 AM
тАО08-30-2002 09:07 AM
Re: UMASK = 000 inetd init script
The other obvious answer is to run a cronjob to change the permissions after the log files have been created.
A little more difficult would be to create a wrapper program which would set ulimit and then exec() your 3rd-party daemon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 09:15 AM
тАО08-30-2002 09:15 AM
Re: UMASK = 000 inetd init script
Another point to remember. The files created by inetd are owned by root. If you change the umask........only root will be able to access.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 01:53 PM
тАО08-30-2002 01:53 PM
Re: UMASK = 000 inetd init script
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 07:40 AM
тАО09-03-2002 07:40 AM
Re: UMASK = 000 inetd init script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 09:13 AM
тАО09-03-2002 09:13 AM
Re: UMASK = 000 inetd init script
anyone but root from writing
files created during startup.
This is not necessarily a bad
thing, but HP seems to prefer
it this way.
It allows non-root usrs to write startup log files. This
allows programs that start as root and change user id to
reopen and append to their logs. Is saves a chown on the log file at the expense of
some security. There are
better approaches.
If you want tigher security
on the log files, then you
should consider changing the
umask value in the startup
script for the processes.
Standard values for umask octets are 0 (all access), 2
(read-only), and 7 (no access).
Depending on paranoia levels, umask values of 022, 027, and
077 are typical. All values require some management of
access rights