LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 10:21 AM   #1
gabsik
Member
 
Registered: Dec 2005
Location: italia
Distribution: Debian Kali
Posts: 541

Rep: Reputation: 30
Exclamation Xsession:warning:unable to write to /tmp;X session may exit with an error


I have a debian etch and X.org running .As user startx gives me this error
Code:
Xsession:warning:unable to write to /tmp;X session may exit with an error
This is a desktop error it isn't from shell xorg starts a bit and after i pressed "okey" it goes back to shell.Permissions on "/tmp" are
Code:
drwxrwxrwx   9 root root  4096 2007-05-09 17:04 tmp
This is all i have mounted :
Code:
/dev/hdb5 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hdb7 on /home type ext3 (rw)
/dev/hdb6 on /usr type ext3 (rw)
/dev/hdb8 on /var type ext3 (rw)
and that's my /etc/fstab :
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hdb5       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb7       /home           ext3    defaults        0       2
/dev/hdb6       /usr            ext3    defaults        0       2
/dev/hdb8       /var            ext3    defaults        0       2
#/dev/hdb9       /tmp            ext3    defaults        0       2
/dev/hdb10      none            swap    sw              0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
The desktop starts as root any idea ????
 
Old 05-09-2007, 10:42 AM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Why is /tmp commented out in your fstab? Try uncommenting it (the line that begins "#/dev/hdb9", remove the # symbol).
 
Old 05-09-2007, 02:57 PM   #3
gabsik
Member
 
Registered: Dec 2005
Location: italia
Distribution: Debian Kali
Posts: 541

Original Poster
Rep: Reputation: 30
During install partitioning i haven't made a partition for /tmp , that /dev/hdb9 is an encrypted partition that i didn't configured yet , /tmp is just a directory on the /var partition ... don't mind about that !!!
 
Old 05-09-2007, 05:09 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
If the partition is full you'll get that error. If that is the case, you are sitting on the verge of having a really hosed up system...better look at it.
 
Old 05-10-2007, 06:14 AM   #5
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Fwiw, the permissions on /tmp should be drwxrwxrwt, not drwxrwxrwx. The 't' means the "Sticky bit" is set - see this Wikipedia page for info on it.

jiml8 makes a good suggestion though, it would be a good idea to check that you aren't running out of space (e.g. with df -h).
 
Old 05-11-2007, 06:34 AM   #6
gabsik
Member
 
Registered: Dec 2005
Location: italia
Distribution: Debian Kali
Posts: 541

Original Poster
Rep: Reputation: 30
Quote:
root@www:/root# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdb5 3023576 250272 2619716 9% /
tmpfs 128476 0 128476 0% /lib/init/rw
udev 10240 72 10168 1% /dev
tmpfs 128476 0 128476 0% /dev/shm
/dev/hdb7 15118600 3234108 11116500 23% /home
/dev/hdb6 4031656 1989316 1837544 52% /usr
/dev/hdb8 8567296 856496 7275600 11% /var
No! i'm not running out of space !
For permissions on "/tmp" i have tried both with without sticky bit set and desktop doesn't start ....
 
Old 05-14-2007, 05:32 PM   #7
gabsik
Member
 
Registered: Dec 2005
Location: italia
Distribution: Debian Kali
Posts: 541

Original Poster
Rep: Reputation: 30
Quote:
drwxrwxrwt 9 root root 4096 2007-05-15 00:24 tmp
startx as user doesn't work
Quote:
drwsrwsrwt 9 root root 4096 2007-05-15 00:25 tmp
Quote:
root@www:~# di
Filesystem Mount Megs Used Avail %Used fs Type
/dev/hdb5 / 2952.7 331.4 2471.3 16% ext3
//192.168.1.3/GABR /SMBfs 97838.0 94430.0 3408.0 97% smbfs
udev /dev 10.0 0.1 9.9 1% tmpfs
tmpfs /dev/shm 125.5 0.0 125.5 0% tmpfs
/dev/hdb7 /home 14764.3 3162.3 10852.0 26% ext3
tmpfs /lib/init/rw 125.5 0.0 125.5 0% tmpfs
/dev/hdb9 /tmp 7874.4 145.7 7328.7 7% ext3
/dev/hdb6 /usr 3937.2 2017.4 1719.8 56% ext3
/dev/hdb8 /var 8366.5 883.4 7058.1 16% ext3
my /etc/fstab has default options ...
my partition scheme is:
Quote:
root@www:~# fdisk -l

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 4998 40146403+ f W95 Ext'd (LBA)
/dev/hdb5 1 383 3071817 83 Linux
/dev/hdb6 383 893 4095976+ 83 Linux
/dev/hdb7 893 2805 15359872+ 83 Linux
/dev/hdb8 2805 3889 8704048+ 83 Linux
/dev/hdb9 3889 4909 8191984+ 83 Linux
/dev/hdb10 4909 4998 722200+ 82 Linux swap / Solaris
... it's bad time help !!!
 
Old 05-14-2007, 05:34 PM   #8
gabsik
Member
 
Registered: Dec 2005
Location: italia
Distribution: Debian Kali
Posts: 541

Original Poster
Rep: Reputation: 30
Quote:
drwxrwxrwt 9 root root 4096 2007-05-15 00:24 tmp
startx as user doesn't work
Quote:
drwsrwsrwt 9 root root 4096 2007-05-15 00:25 tmp
Quote:
root@www:~# di
Filesystem Mount Megs Used Avail %Used fs Type
/dev/hdb5 / 2952.7 331.4 2471.3 16% ext3
//192.168.1.3/GABR /SMBfs 97838.0 94430.0 3408.0 97% smbfs
udev /dev 10.0 0.1 9.9 1% tmpfs
tmpfs /dev/shm 125.5 0.0 125.5 0% tmpfs
/dev/hdb7 /home 14764.3 3162.3 10852.0 26% ext3
tmpfs /lib/init/rw 125.5 0.0 125.5 0% tmpfs
/dev/hdb9 /tmp 7874.4 145.7 7328.7 7% ext3
/dev/hdb6 /usr 3937.2 2017.4 1719.8 56% ext3
/dev/hdb8 /var 8366.5 883.4 7058.1 16% ext3
my /etc/fstab has default options ...
my partition scheme is:
Quote:
root@www:~# fdisk -l

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 4998 40146403+ f W95 Ext'd (LBA)
/dev/hdb5 1 383 3071817 83 Linux
/dev/hdb6 383 893 4095976+ 83 Linux
/dev/hdb7 893 2805 15359872+ 83 Linux
/dev/hdb8 2805 3889 8704048+ 83 Linux
/dev/hdb9 3889 4909 8191984+ 83 Linux
/dev/hdb10 4909 4998 722200+ 82 Linux swap / Solaris
... it's bad time help !!!
 
Old 05-15-2007, 12:10 PM   #9
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Sorry for not replying, I'm afraid I really don't know what's causing this problem. You could try looking in the X log after a failed startx attempt, to see if there's any more information there. It's probably at /var/log/Xorg.0.log. Look for error lines beginning (EE).

You could also try reconfiguring X. On Ubuntu (Debian derivative) the command for this is 'dkpg-reconfigure xserver-xorg', I guess it's similar in Debian but I don't know for sure as I've never used it.
 
Old 05-31-2007, 09:51 PM   #10
gabsik
Member
 
Registered: Dec 2005
Location: italia
Distribution: Debian Kali
Posts: 541

Original Poster
Rep: Reputation: 30
Permissions on /tmp are properly set as they are on a newly installed debian:
Quote:
drwxrwxrwt 5 root root 4096 2007-06-01 03:02 tmp
and these are xorg's logs :
Quote:
AUDIT: Fri Jun 1 04:31:39 2007: 6409 X: client 1 rejected from local host
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
The desktop starts without the warning message and stays grey for 1 minute and after it crashes the debugging message on the terminal is:
Quote:
AUDIT: Fri Jun 1 04:31:39 2007: 6409 X: client 1 rejected from local host
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
giving up.
xinit: unable to connect to X server
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
Heeeeeeeeeeeeeeelp !!!
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrated New Server Error = Warning: session_start() [function.session-start]:....... jim_cliff11 Linux - Server 1 02-16-2007 08:04 AM
Xsession cannot write to /tmp flebber Ubuntu 5 05-03-2006 12:26 AM
Xsession: warning: unable to write to /tmp whatpot Linux - Newbie 2 11-04-2005 09:17 AM
xsession warning sharadshankar Debian 2 06-10-2005 04:11 AM
Invoke script on xsession exit? comp12345 Linux - Software 1 06-27-2004 10:27 PM


All times are GMT -5. The time now is 08:01 PM.

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