Man pages as root doesn't work
After a lot of manual fixing, I managed to get Slackware-current working fine. However, I had to install the man and man-pages from swaret because it wasn't installed earlier.
Now man works fine as a user, but as root, it doesn't display anything. Just a blank page. I installed groff because man seems to require this, but it still doesn't work as root. |
Quote:
I would try to remove subdirs for man cache files Code:
rm -rf /var/man/cat{[1-9],n}/* Code:
upgradepkg --reinstall man-<version>-<arch>-<build>.tgz |
Those fixes were for other problems including a few dependency issues with other programs and glibc.
man does work fine as user. But when I su to root or log in as root, it just displays an empty screen. Not sure how to fix this, although it's not a major problem. |
does strace give you any clues
as to what might be happening under root but not user? |
Maybe you should try what I was suggesting, maybe man tool refuses to display content of a cached file when with improper permissions, but that's only my doubt. I'm running 2 boxes with Slack current and can normaly read man pages as root.
Just another idea concerning possible wrong environment settings. Can you su to root wihtout '-' option to keep users settings and try it again ? Also check PATH, MANPATH and TERM environment variables when logged in as root. May be it has something to do with different setting of locales. Try Code:
LANG=C LC_ALL=C man 1 man |
Quote:
2. why would you need root privileges to read man pages ?! |
Well, sometimes I su to root to do some operation and then require to check up a command. In that situation I use the man command.
Also, now I tried compiling 2.6.16 from Slackware and it doesn't work. I will have to restore grub to point to the earlier kernel before I can try out the suggestions in this thread. |
Issue set as root, your MANPATH should be like this:
Code:
MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/usr/lib/java/man:/opt/kde/man:/usr/lib/qt/doc/man:/usr/share/texmf/man |
Strangely problem solved. Maybe the new kernel I compiled (2.6.16) did it, but I'm not sure. Anyway, works now :)
|
All times are GMT -5. The time now is 06:11 PM. |