[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Permission denied on startx after suspend resume

Hash: SHA1

On Oct 13, 2004, at 8:02 AM, Ken Moffat wrote:

On Tue, 12 Oct 2004, Barry Hawkins wrote:
	I rebooted after waking from suspend on my Titanium PowerBook G4
500MHz and began experiencing an inability to log on via the KDM
prompt.  I would enter my credentials, the screen would go black, then
show the default X background, then reload the KDM login prompt.  I
went to a console login via Alt + N, and was able to login there. When
trying to run startx, the following errors are encountered among the
XFree86 output:

Writing authority file /home/barryh/.Xauthority
/usr/bin/X11/startx: line 131: /dev/null: Permission denies

 It sounds as if /dev/null has been trashed.  Does `ls -l /dev/null'
show something like this ?

crw-rw-rw-  1 root root   1,   3   (a date) /dev/null

 If it's just the permissions, chmod 666 /dev/null.  If something has
overwritten it so that it's now a regular file, delete it and

mknod -m 666 /dev/null c 1 3

 When /dev/null doesn't work, all bets are off in trying to interpret
other errors.
    The state of /dev/null turned out to be this:

~# ls -l /dev/null
- -rw-r--r--  1 root root 0 2004-10-13 14:11 /dev/null

Even though it looked like /dev/null needed to be recreated, I first changed the permissions. Running:

~# chmod 666 /dev/null
~# ls -l /dev/null
- -rw-rw-rw-  1 root root 19 2004-10-13 14:18 /dev/null

allowed me to run startx without any errors. However, as you can see, /dev/null is now a regular file. I proceeded to delete /dev/null and recreate it as you had suggested as shown below:

~# mknod -m 666 /dev/null c 1 3
~# ls -l /dev/null
crw-rw-rw-  1 root root 1, 3 2004-10-13 14:24 /dev/null

I then rebooted the machine just to see the effect of the repaired /dev/null in total. KDM allowed me to log in just fine, and it even seems to have remediated some font sizing issues that had arisen once this issue began. Many thanks for your helpful insight on this issue. That could have taken me days to track down.


Barry C. Hawkins
All Things Computed
site: www.alltc.com
weblog: www.yepthatsme.com

Version: GnuPG v1.2.4 (Darwin)


Reply to: