LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 03-11-2008, 06:51 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296

Rep: Reputation: 30
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.
 
Old 03-11-2008, 06:58 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 03-11-2008, 01:10 PM   #3
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296

Original Poster
Rep: Reputation: 30
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.
 
  


Reply

Tags
denied, man, permission


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List tools that have "man" pages. OldAl Ubuntu 11 08-03-2007 10:38 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 02:05 PM
normal user want to perform "init 6" by using " sudo acbenny Linux - General 3 08-08-2004 07:41 AM
Uploading web pages; get "access forbidden" when I load them in browser! Thermodynamic Linux - Software 1 04-03-2004 05:52 PM
man pages show backquotes as "u" with umlaut? brainclots Red Hat 1 12-01-2003 11:26 PM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration