PDA

View Full Version : up a creek .... /tmp/ permission debaucle



Wangberg
14th October 2007, 07:53 AM
i was moving some data from an external drive to my /home/user using rsync.... Make a long story short, permissions are screwed up for /tmp/ . I can't log into gnome without a plethora of errors. I had permisions for /tmp/ set to 755, then 777... I have no idea what to do. I set the permissions recurssive and i think that really screwed up everything. Now, I am using a centos 4.4 liveCD to get online...

here is one of the errors i was getting before my entire GUI crashed and no longer shows any panels or background:



Failed to contact configuration server; some possible causes are that
you need to enable TCP/IP networking for ORBit, or you have stale NFS
locks due to a system crash. See http://www.gnome.org/projects/gconf/
for information. (Details - 1: IOR file '/tmp/gconfd-mike/lock/ior'
not opened successfully, no gconfd located: No such file or directory
2: IOR file '/tmp/gconfd-mike/lock/ior' not opened successfully, no
gconfd located: No such file or directory)


also, i tried to access my linux partition from the live CD and it's not really showing up:




[root@centos mnt]# fdisk -l

Disk /dev/hda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3355 26949006 7 HPFS/NTFS
/dev/hda2 3356 9729 51199155 f W95 Ext'd (LBA)
/dev/hda5 3356 4630 10241406 7 HPFS/NTFS

Disk /dev/hdc: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 5005 40098240 8e Linux LVM

Disk /dev/sda: 120.0 GB, 120034124288 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 14593 117218241 b W95 FAT32
[root@centos mnt]# cd /mnt/hdc1
[root@centos hdc1]# ls
config-2.6.22.7-85.fc7 initrd-2.6.22.9-91.fc7.img vmlinuz-2.6.22.7-85.fc7
config-2.6.22.9-91.fc7 lost+found vmlinuz-2.6.22.9-91.fc7
grub System.map-2.6.22.7-85.fc7
initrd-2.6.22.7-85.fc7.img System.map-2.6.22.9-91.fc7
[root@centos hdc1]#


doesn't look like my / to me .... maybe i'm looking i nthe wrong place...


anyone who can help me restore the proper permissions to /tmp and get my GUI up and running again, it would be much apprecaited!!!! Thanks!

vinu
14th October 2007, 08:31 AM
The correct permissions for the /tmp directory are 1777. As root, do the following
chmod 1777 /tmp

--Vinu.

markkuk
14th October 2007, 09:06 AM
/dev/hdc1 is your /boot partition. / is a logical volume within the LVM physical volume /dev/hdc2. That's the default Fedora setup.

Wangberg
14th October 2007, 03:03 PM
The correct permissions for the /tmp directory are 1777. As root, do the following
chmod 1777 /tmp

--Vinu.

i will try this. however i still cannot access /dev/hdc2. Whenever i try to mount it, it says that the device is busy or in use, or that "mount: can't find /dev/hdc2 in /etc/fstab or /etc/mtab"

i can use the failsafe term, i will try that now....but it is a pain to have to restart and wait for this liveCD to boot.

Thanks!

Wangberg
15th October 2007, 03:36 AM
okay,

so i was able to gain access to KDE after i reset the permissions to 1777 for /tmp/, however i still can't get into gnome without at least 25 errors. None of the error dialog boxes, seem to be in a state where the error copied and pasted into a .txt file. Is there any log that i can access that will display these error messages? After i click through all the error dialog boxes, my entire gnome desktop is useless. I have no panels or background, natutilus won't display anything and i have no access to a term. it's looking pretty grim :(

it only occurs when trying to load gnome. I did yum remove and install gnome, but that didn't help. I'd love to see these errors, just have no idea how to access a log, if there is one.

thanks!

clearer
15th October 2007, 04:52 AM
Have you tried to delete everything in /tmp? It usually helps with stuff like this.

Wangberg
15th October 2007, 05:22 AM
Have you tried to delete everything in /tmp? It usually helps with stuff like this.

i thought that, but i currently saw some torrent temp files. The torrents i'm currently downloading are extremely hard to attain, and i was worried that it would affect the download.

how lame, i konw....some kid worried about his downloads....but seriously....do you think it would affect it ?

thanks!

Wangberg
15th October 2007, 06:21 AM
Have you tried to delete everything in /tmp? It usually helps with stuff like this.

it seems as though deleting all files in /tmp that have any involvement with gnome did the trick. I kept the other tmp files i was worried about...

PROBLEM SOLVED! Thanks Clearer!!!!!!!!!! :D