- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: man doesn't work for non-root user
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
12-08-2004 09:12 AM
12-08-2004 09:12 AM
However, I was able to make man work for a nonroot user on a backup server by changing permisions to everything in /usr/share/man to 777, but I wanted to know if there was better way.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 09:33 AM
12-08-2004 09:33 AM
Solutionll -d /usr/man
dr-xr-xr-x
I don't think you want users writing to the man files.
My permissions on the files them shelves is read only all users.
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
12-08-2004 09:35 AM
12-08-2004 09:35 AM
Re: man doesn't work for non-root user
As you've already surmised it appears to be a problem with permissions in /usr/share/man directory.
My understanding is that permissions for this directory should be r-xr-xr-x (555).
The sub-directories should have the following permissions:
cat*.Z rwxrwxrxt
man* r-xr-xr-x
man*.Z r-xr-xr-x
Don't know if that will help but might be worth a try.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 10:08 AM
12-08-2004 10:08 AM
Re: man doesn't work for non-root user
cd /usr/share/man
chown -R bin:bin *
Surprisingly there ARE directories and files under man that you want to have more open permissions. Those are the cat* directories and the files beneath them. The reason for that is that these are formatted versions of the files under man*. A regular user dos a man ls for example; man first searchs for the file under cat* if not found if looks in man*, runs m4 on it and saves a version under cat* so that subsequent access of the same man page will be faster.
The man* directories should have mode set to 555 and the files below them should be set to mode 444.
The cat* directories should be set to 777 and the files below them to 666. If the wide-open modes of the cat* files bother you then simply set all the cat* directories to 000 and man will still work but will not optimize subsequent man page accesses. The only real security risk here is that someone could alter a man page to give bogus instructions to some trusting user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 01:10 AM
12-09-2004 01:10 AM