Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: user man doesnt work, man works only as root< Next Oldest | Next Newest >
IDK Offline





Group: Members
Posts: 22
Joined: April 2006
Posted: May 11 2006,15:41 QUOTE

When I run man not as root it displays the last page viewed by root.
When I exit it says /tmp/man/: Permission denied.

It wasn't like this when I installed it...
Why does that happen and how can I fix it?


--------------
Niklas Ulvinge aka IDK
wishes you
happy proramming,
or whatever you do
Back to top
Profile PM WEB MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 11 2006,18:49 QUOTE

Sounds like a bug that everybody overlooked =o)

Running the man script in DSL creates the file /tmp/man, but it apparently is not removed afterward (or maybe man was closed before /tmp/man was removed...i don't know what perl is doing most of the time).  So if you run it as root, the /tmp/man file will be owned as root, and cannot be modified later by a regular user.

To fix this, use the command sudo rm /tmp/man to delete the temp file as root, then you should be able to use man as a regular user.

John: What if the "/tmp/man" file was instead "/tmp/man-$USER"?  I know some people might be uncomfortable having a file called "man-root" on their systems, but it's just an idea.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
IDK Offline





Group: Members
Posts: 22
Joined: April 2006
Posted: May 11 2006,20:13 QUOTE

Thanks

--------------
Niklas Ulvinge aka IDK
wishes you
happy proramming,
or whatever you do
Back to top
Profile PM WEB MSN 
2 replies since May 11 2006,15:41 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: user man doesnt work

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code