/dev/null: permission denied

Bug #591114 reported by jhthayer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

Karmic Koala, and my best guess is that the problem is in udev, but since I can't find where the initial umask is set for such virtual filesystem parts as this, that's only a guess. KDM will not accept password, so cannot be normally initialized, and dropping to console, after entering user and pw, a couple of screens of "bash: /dev/null: permission denied" precede the prompt. After stopping kdm and startx with sudo, a root, but otherwise normal graphical session suggests the problem is not X. Xsession-errors shows similar /dev/null errors reported in the Xsession script in three places, all attempted references to or related to /dev/null. /dev/null permissions are root only and cannot be changed by the often recommended rm, mknod route, as they immediately revert on boot. People recommend reinstallation, but since this appeared to only be connected to updates installed in April 2010, about the third week, or possibly to the installation of the udftools package, this doesn't seem a viable solution, and certainly not a practical one if recurrence may be expected. What I would like to know is how is the umask set for this, and what must one do to correct the problem in an incisive manner. Thank you for any attention to this.

Revision history for this message
jhthayer (jhthayer) wrote :

I still haven't got kdm straightened out, so it is still necessary to use startx to begin a session, but the '/dev/null: permission denied' matter is now resolved. It appears that the '50-udev-default.rules' file had been removed by one or another of the updates that occurred at that time (toward end of April). I copied the file from my gde version of karmic and that cured the problem with the incorrect permissions for the /dev/null file, and login via the command line now works properly and it is no longer necessary to log on as root. Should anyone be interested. Since I haven't found the other problem, the one with kdm, I suppose this is still outstanding, though perhaps a matter for the kde people.

Revision history for this message
jhthayer (jhthayer) wrote :

I should have mentioned that there were no error messages at the time of those updates, so this occurrence is not due to some incomplete or botched upgrade of any of the suspects, but more likely to some scripted installation incompatibility with this otherwise standard Kubuntu installation.

Revision history for this message
Kenyon Ralph (kralph) wrote :

Have you googled for this? https://encrypted.google.com/search?q=kubuntu+dev+null+permission+denied

Try these:

https://launchpad.net/bugs/149346
https://launchpad.net/bugs/63031

Let us know if any of that information helps you fix this, and please close this bug report if so.

Revision history for this message
jhthayer (jhthayer) wrote :

Thank you for your suggestions; most of them reflect things I had googled up earlier but did not point to the difficulty. The machine is down currently due to PS problems, so I don't have access to the system or files, and what I write is from memory and some sketchy notes I took--but one of the updates I installed in late April somehow removed the file '50-udev-default.rules' from /lib/udev/rules.d/.

I found this by comparison with another Karmic installation, and in fact fixed it by copying that file to my installation. Problem disappeared. If anyone is in need, I can look through the updates record of that time and (if the packages haven't been replaced since) see if I can find which one did it. If no one is interested, then, consider this bug closed.

Kenyon Ralph (kralph)
Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in ubuntu:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.