LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-03-2006, 01:32 AM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
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.
 
Old 04-03-2006, 03:51 AM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Harishankar
After a lot of manual fixing ...
It's hard to say what is the problem even when you did lot of manual fixing only known to you. In my experience Slackware does not need such "fixes", just editing configuration files.
I would try to remove subdirs for man cache files
Code:
rm -rf /var/man/cat{[1-9],n}/*
(there may be a problem with permissions) and reinstall man and groff package for sanity
Code:
upgradepkg --reinstall man-<version>-<arch>-<build>.tgz
upgradepkg --reinstall groff-<version>-<arch>-<build>.tgz
Concerning the cat subdirs, what permissions do they have ? Btw. they come from aaa_base package.

Last edited by dunric; 04-03-2006 at 04:40 AM.
 
Old 04-03-2006, 04:55 AM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
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.
 
Old 04-03-2006, 06:08 AM   #4
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
does strace give you any clues
as to what might be happening
under root but not user?
 
Old 04-03-2006, 07:50 AM   #5
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
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
Stracing a problematic app is also a good way if you know what you are doing.
 
Old 04-03-2006, 08:44 AM   #6
wchild
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
Quote:
Originally Posted by Harishankar
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.
1. check your PATH (for root)
2. why would you need root privileges to read man pages ?!
 
Old 04-03-2006, 09:54 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
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.
 
Old 04-03-2006, 10:12 AM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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
 
Old 04-04-2006, 11:13 AM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Strangely problem solved. Maybe the new kernel I compiled (2.6.16) did it, but I'm not sure. Anyway, works now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
who - man pages kshkid Programming 17 03-01-2006 02:37 AM
man pages q. jnusa Linux - Software 6 02-03-2006 08:40 AM
C man pages sono2 Linux - General 1 09-09-2005 10:36 AM
What do you mean by MAN pages? inspectreo Linux - Newbie 2 05-08-2005 02:12 PM
man pages dont work.. chlee General 2 06-07-2002 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration