dev/null only root access - why?
Why does dev/null has rw permissions only for root? ls -al /dev/null -rw-r--r-- 1 root root 0 22 сеп 21,09 /dev/null Where do you fix this? regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dev/null only root access - why?
On Tue, Sep 22, 2009 at 2:23 PM, Emanoil Kotsev delop...@yahoo.com wrote: Why does dev/null has rw permissions only for root? ls -al /dev/null -rw-r--r-- 1 root root 0 22 сеп 21,09 /dev/null Mmm. Weird major and minor numbers. It doesn't look like a char device. crw-rw-rw- 1 root root 1, 3 2009-09-21 14:24 /dev/null N.- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dev/null only root access - why?
On 2009-09-22 21:23 +0200, Emanoil Kotsev wrote: Why does dev/null has rw permissions only for root? ls -al /dev/null -rw-r--r-- 1 root root 0 22 сеп 21,09 /dev/null This can happen if some program, e.g. an early init script, writes to /dev/null before the device node for it is created. In this case, redirection (foobar /dev/null) will create it as a regular file. Where do you fix this? I don't really have an explanation or a solution. To debug the problem, reboot with init=/bin/bash added to the kernel command line and run the scripts in /etc/rcS.d, one at a time (/etc/rcS.d/Swhatever start). Check /dev/null after each script. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dev/null only root access - why?
Nelson Castillo wrote: On Tue, Sep 22, 2009 at 2:23 PM, Emanoil Kotsev delop...@yahoo.com wrote: Why does dev/null has rw permissions only for root? ls -al /dev/null -rw-r--r-- 1 root root 0 22 сеп 21,09 /dev/null Mmm. Weird major and minor numbers. It doesn't look like a char device. It's a regular file of size zero created at 2109 on the 22nd of what looks like cen - which is sep in cyrillic. Whoever made the comment about something creating the file before the device gets created is right I rather suspect ;) Or udev isn't running for some reason. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dev/null only root access - why?
Chris Jackson wrote: Or udev isn't running for some reason. I correct myself, /dev/null exists, at least on my system (lenny), on the underlying /dev with the minimal set of devices on there. So it should never not exist as far as I can see. Did you do anything that might have deleted it, or are you in some odd situation such as a chroot where it's not created, perhaps? -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dev/null only root access - why?
Sven Joachim wrote: On 2009-09-22 21:23 +0200, Emanoil Kotsev wrote: Why does dev/null has rw permissions only for root? ls -al /dev/null -rw-r--r-- 1 root root 0 22 сеп 21,09 /dev/null This can happen if some program, e.g. an early init script, writes to /dev/null before the device node for it is created. In this case, redirection (foobar /dev/null) will create it as a regular file. Thanks for your replies. I suspect here hibernate! I don't know it very well, but I have problems after wake up from supsend or hibernate state. I have installed 2.6.31 (custom) recently, but don't think this is the reason. Where do you fix this? I don't really have an explanation or a solution. To debug the problem, reboot with init=/bin/bash added to the kernel command line and run the scripts in /etc/rcS.d, one at a time (/etc/rcS.d/Swhatever start). Check /dev/null after each script. After I reboot it looks normal, so may be you are correct. It's either some script/hibernate or udev issue. It's not that urgent to fix today, but would be nice to have a solution. regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dev/null only root access - why?
Emanoil Kotsev wrote: Sven Joachim wrote: On 2009-09-22 21:23 +0200, Emanoil Kotsev wrote: Why does dev/null has rw permissions only for root? ls -al /dev/null -rw-r--r-- 1 root root 0 22 сеп 21,09 /dev/null This can happen if some program, e.g. an early init script, writes to /dev/null before the device node for it is created. In this case, redirection (foobar /dev/null) will create it as a regular file. Thanks for your replies. I suspect here hibernate! I don't know it very well, but I have problems after wake up from supsend or hibernate state. I have installed 2.6.31 (custom) recently, but don't think this is the reason. Where do you fix this? I don't really have an explanation or a solution. To debug the problem, reboot with init=/bin/bash added to the kernel command line and run the scripts in /etc/rcS.d, one at a time (/etc/rcS.d/Swhatever start). Check /dev/null after each script. After I reboot it looks normal, so may be you are correct. It's either some script/hibernate or udev issue. It's not that urgent to fix today, but would be nice to have a solution. regards this should be s2disk. tested with same result using hibernate there is no such issue. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org