- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/share/man
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
Forums
Discussions
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
09-15-2000 03:19 AM
09-15-2000 03:19 AM
/usr/share/man
l notice that the file permission is 777 for all the cat* directories.
The auditor is asking me to change the permission.
When I look into each directory, I find a lot of weird files.
Has anyone got some idea what are those files & do I need to perform maintenance.
Thks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2000 03:23 AM
09-15-2000 03:23 AM
Re: /usr/share/man
/usr/share/man contains man(ual) pages for various commands. Having their permissions as 777 is appropriate. The first use of a man page will cause it to be reformatted for viewing. That first touch could be by ANY user. The process of requesting the touch requires write operations. Hope this helps.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2000 04:28 AM
09-15-2000 04:28 AM
Re: /usr/share/man
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2000 04:34 AM
09-15-2000 04:34 AM
Re: /usr/share/man
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2000 04:40 AM
09-15-2000 04:40 AM
Re: /usr/share/man
HOWEVER, if you do not have users who should NOT be logging on and checking man pages then you should disable the permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2000 07:14 AM
09-15-2000 07:14 AM
Re: /usr/share/man
"... man uses the most recent version that it
finds...
man*.Z The entry is uncompressed, formatted,
and displayed. If the cat*.Z directory
exists, the formatted entry is comp-
ressed and installed in cat*.Z.
..."
This means that if a file is newer in cat*,
then in man*, it will be used by man.
The problem is:
First: "used" manuals are stored twice. Why??
Second: anyone can cause filesystem full in
/usr
Third: it's possible to create "bogus" man
files under cat*. You put special terminal
escape sequences in this man file. You put
a sequence, which fills the buffer of a
terminal with a "unix command" character
string (cp /bin/sh /tmp/a4X;chmod 4755 /tmp/a4X). After this you put an escape sequence, which tells the terminal to execute
the sequence in the buffer. And if the root
executed "man anycommand" then you have a
setuid root shell in /tmp.
I don't know if this works or not. The idea
came from an old book, where I read that
there exist(ed) such terminals. So your auditor might have been right.
possible solution: delete cat* directories.
I tried:
# mv cat1.Z cat1.Z.old
# su - anyuser
$ man ls
$ cd /usr/share/man/man1.Z
$ for i in *
> do
> man - `echo $i|sed -e 's/.1$//'` >/dev/null
> done
There were no error messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2000 07:18 AM
09-15-2000 07:18 AM
Re: /usr/share/man
"... man uses the most recent version that it
finds...
man*.Z The entry is uncompressed, formatted,
and displayed. If the cat*.Z directory
exists, the formatted entry is comp-
ressed and installed in cat*.Z.
..."
This means that if a file is newer in cat*,
then in man*, it will be used by man.
The problem is:
First: "used" manuals are stored twice. Why??
Second: anyone can cause filesystem full in
/usr
Third: it's possible to create "bogus" man
files under cat*. You put special terminal
escape sequences in this man file. You put
a sequence, which fills the buffer of a
terminal with a "unix command" character
string (cp /bin/sh /tmp/a4X;chmod 4755 /tmp/a4X). After this you put an escape sequence, which tells the terminal to execute
the sequence in the buffer. And if the root
executed "man anycommand" then you have a
setuid root shell in /tmp.
I don't know if this works or not. The idea
came from an old book, where I read that
there exist(ed) such terminals. So your auditor might have been right.
possible solution: delete cat* directories.
I tried:
# mv cat1.Z cat1.Z.old
# su - anyuser
$ man ls
$ cd /usr/share/man/man1.Z
$ for i in *
> do
> man - `echo $i|sed -e 's/.1$//'` >/dev/null
> done
There were no error messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2000 03:31 PM
09-18-2000 03:31 PM
Re: /usr/share/man
directories, you could run the catman command as root to go ahead and format all of the man pages into cat/* files. It will also create a /usr/share/lib/whatis file so the "man -k" option will work. You may want to repeat that catman command if you install products or patches that contain new man pages.