- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Why hp apache generating logs on hpux having p...
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
10-05-2005 06:51 AM
10-05-2005 06:51 AM
We are running HP Apache on HPUX. The apache is being configured to run as "www" user. Apache starts as a "root" user but switches to run as a "www" user.
The access and error logs files are generated having permissions as 600 and as a result other users can't access it and i need to change it manually every time. Writing shell script to change the logs permissions and running it as a cron job doesn't seems to be a viable option here. I changed the umask value on the box as 022 but it didn't help.
Can someone suggest why apache is generating logs having permissions 600 and how to fix it ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 06:56 AM
10-05-2005 06:56 AM
SolutionOver the years people have used buffer overload and other hacks to get priviledges on the machine running apache. Its best when this happens that the user not be root.
Your log permissions are probably being determined by umask set in /etc/profile or .profile
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
10-05-2005 06:59 AM
10-05-2005 06:59 AM
Re: Why hp apache generating logs on hpux having permissions 600 ?
did you also check the .profile of the www-user for a umask ?
edit it or add it ....
let me know .
regards.
Henk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 07:01 AM
10-05-2005 07:01 AM
Re: Why hp apache generating logs on hpux having permissions 600 ?
I would guess that the running www user process is still using the old umask. Since it already sourced it once.
Or that the umask is being set somewhere along the lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 08:57 AM
10-05-2005 08:57 AM
Re: Why hp apache generating logs on hpux having permissions 600 ?
Thanks!!
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 01:38 PM
10-05-2005 01:38 PM
Re: Why hp apache generating logs on hpux having permissions 600 ?
# Set umask
umask 022
After this your apache log file will be created with 644 mode.