LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ls in /tmp produces "permission denied" even as root (https://www.linuxquestions.org/questions/linux-newbie-8/ls-in-tmp-produces-permission-denied-even-as-root-32045/)

kpfeiffer 10-06-2002 08:39 AM

ls in /tmp produces "permission denied" even as root
 
sputnik:/tmp # ls
ls: xwlog: Permission denied
ls: YaST2.tdir: Permission denied
ls: .sigawhile: Permission denied
ls: ksocket-root: Permission denied
ls: xauth.XXXXCDdgn6: Permission denied
ls: kde-root: Permission denied
ls: MO3D01E58E0001481: Permission denied
ls: mcop-pfeiffer: Permission denied
ls: indexresult.2127.html: Permission denied
ls: soffice.tmp: Permission denied
ls: YaST2-04183: Permission denied
ls: YaST2-05967: Permission denied
ls: mcop-root: Permission denied
ls: pfeiffer-netscape: Permission denied

What do I do about this? The tmp file listed all seem to correspond to programs with which I have problems (Netscape doesn't start, for example, error message on login from mcop, etc.)

I searched the archives here as best I could, but didn't find (or didn't recognize) what I needed.

Thanks in advance (Anworten auf Deutsch sind auch okay)

Linux (Suse 8.0ish)

-K (happy to find this forum - already know vBulletin, too)

Mara 10-06-2002 09:39 AM

Do you have /tmp on a separate partition?

kpfeiffer 10-06-2002 10:08 AM

more info
 
Quote:

Originally posted by Mara
Do you have /tmp on a separate partition?
(Wish I could answer you.) :-)

KDiskFree lists:

/dev/hda6 reiserfs 3.3. GB 33% /
shmfs ? 60 MB 0% /dev/shm

-K

PS - And most files located in tmp list just fine.

Mara 10-06-2002 11:19 AM

Could you sen a result of
ls -l
in /tmp as root?

kpfeiffer 10-06-2002 12:32 PM

Hallo Mara,

Here is the beginning of ls -l :

sputnik:/tmp # ls -l
ls: xwlog: Permission denied
ls: YaST2.tdir: Permission denied
ls: .sigawhile: Permission denied
ls: ksocket-root: Permission denied
ls: xauth.XXXXCDdgn6: Permission denied
ls: kde-root: Permission denied
ls: MO3D01E58E0001481: Permission denied
ls: mcop-pfeiffer: Permission denied
ls: indexresult.2127.html: Permission denied
ls: soffice.tmp: Permission denied
ls: YaST2-04183: Permission denied
ls: YaST2-05967: Permission denied
ls: mcop-root: Permission denied
ls: pfeiffer-netscape: Permission denied
total 121093
drwxrwxrwt 21 root root 2408 Oct 6 19:33 .
drwxr-xr-x 19 root root 560 Oct 1 02:10 ..
drwxrwxrwt 2 root root 280 Oct 6 14:17 .ICE-unix
-r--r--r-- 1 root root 11 Oct 6 14:16 .X0-lock
drwxrwxrwt 2 root root 96 Oct 6 14:16 .X11-unix
drwxr-xr-x 2 root root 48 May 24 09:54 .qt
-rw------- 1 pfeiffer users 89 Aug 14 23:35 0,2162,1012206,00.ram
-rw------- 1 pfeiffer users 89 Aug 14 23:32 0,2162,1014498,00.ram
-rw------- 1 pfeiffer users 196 Jul 22 11:38 0260864147106588.rm
-rw------- 1 pfeiffer users 196 Jul 24 16:27 0433803922698742.rm

neo77777 10-06-2002 12:40 PM

try this trick.
ls -ld /tmp
does it show
drwxrwxrwt root root ...........
?
cd /tmp
become root with su
chown -R root:root *
chmod -R 755 *
and see what happens.


All times are GMT -5. The time now is 07:34 PM.