Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-11-2008, 06:51 AM
|
#1
|
|
Member
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296
Rep:
|
Cannot access "man pages" as normal user - temp filename creation error.
Hello,
Whenever I try to access a man page for a specific command as a non-root user I get the error message as below :
Code:
uncle@ubuntu:/$ man ls
man: Can't create a temporary filename : Permission denied
This has happened somewhat mysteriously. I can only view the man pages as root or if I "sudo." Could this be because the permissions of the /tmp directory have been altered ? If so what should the correct permissions be ? World readable / writeable and executable ?
Thanks
UC.
|
|
|
|
03-11-2008, 06:58 AM
|
#2
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
The permissions on the temp directory should be "rwxrwxrwt". You can create it with "sudo chmod a=rwxt /tmp".
However, check if the partition is out of free space. Some filesystems reserve some free space just for root. It could be that running man works for root but not a regular user because only root has the space to do it.
I had a similar problem on my laptop recently. However even root couldn't use man but the message was that the man page file itself couldn't be read. ( ltrace man <topic> would work however ) I think the problem was when I copied some files as root to a /usr/share/doc/<whereever/directory> and used the -p option. It changed the permissions of /usr/local/ denying the less command from reading the file.
I used "rpm -qV filesystem" to discover where the problem was. This is for an rpm based system. I'm sure a debian system has something similar.
|
|
|
|
03-11-2008, 01:10 PM
|
#3
|
|
Member
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296
Original Poster
Rep:
|
Thanks a lot jschiwal. I checked the /tmp directory permissions and they were not set to world readable, writeable or executable and the sticky bit was not set. I was curious as to how this had happened but when you recalled your own similar experience I guess the changing of permissions must have happened when I too was copying files/directories from /tmp using the -p option.
Thanks again for the help !
Regards,
UC.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:20 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|