Problem
When logging in as a non-root user I get the following error and it brings me back to login.
Code:
Xsession: warning: Unable to write to /tmp; X session may exit with an error
What I've tried
1) I checked my permissions on /tmp. No problems there.
2) I examined my .xsession-errors file and found this:
Code:
Xsession: X session started for roots at Sun Mar 13 04:12:18 CST 2005
Xsession: warning: unable to write to /tmp; X session may exit with an error
mkdtemp: private socket dir: No space left on device
3) I found where this test is ran in /etc/X11/Xsession:
Code:
# Attempt to create a file of non-zero length in /tmp; a full filesystem can
# cause mysterious X session failures. We do not use touch, :, or test -w
# because they won't actually create a file with contents. We also let standard
# error from tempfile and echo go to the error file to aid the user in
# determining what went wrong.
WRITE_TEST=$(tempfile)
if ! echo "*" >>"$WRITE_TEST"; then
message "warning: unable to write to ${WRITE_TEST%/*}; X session may exit" \
"with an error"
fi
rm -f "$WRITE_TEST"
4) I checked my partition sizes and disc space:
Code:
Name Directory Type Total Used Used (%)
/dev/hda1 / ext3 4.6GB 4.4GB 97%
none /dev tmpfs 5.0MB 772KB 15%
/dev/ /.dev unknown 4.6GB 4.4GB 97%
/dev/hda6 /home ext3 178.3GB 71.3GB 40%
tmpfs /dev/shm tmpfs 442.7MBGB 0B 0%
5) Seeing that root was running low, I tried uninstalling a package that freed over 20MB. It still didn't let me login as non-root.
***************************************************
I'm running out of ideas now.
I guess this test in Xsession isn't run if you login as root or something then? I can login to X as root just fine. I'm thoroughly perplexed here.
Please help, thanks.