LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   /dev/null permission denied (https://www.linuxquestions.org/questions/linux-general-1/dev-null-permission-denied-520470/)

sagar.1986 01-18-2007 06:22 AM

/dev/null permission denied
 
Hi,
I was messing around with x-configurations and setting up of a dual head, however now, when i restart X, i cant login to X. It gives an error --/dev/null permission denied. I can login from root though. the permissions of /dev/null is crwx------ .If i change it to crwxrwxrwx then i can login from other users
to X . But when i restart the computer the permissions revert back to crwx------.

How do i change the permissions of /dev/null to crwxrwxrwx permanently? Where will all these settings be saved?

nx5000 01-18-2007 06:56 AM

As you didn't mention your distro, let's assume it uses udev
you have to look at /etc/udev/permissions.rules, the line should be:
KERNEL=="null", MODE="0666"

Could also be this, depending on your udev version:
KERNEL="null", MODE="0666"

sagar.1986 01-18-2007 03:00 PM

I use ubuntu 6.06.1 LTS. The settings of /etc/udev/rules.d/permissions.rules is :
KERNEL=="NULL" ,MODE="0666". The udev service is on in all the runlevels. But i am still facing the same problem. Why?

nx5000 01-18-2007 03:50 PM

Maybe another rule is overriding this one. ??
Try udevtest to check how rules are applied.

Are you using an initrd? I'm not sure when /dev/null is created but you should also check the rules in the initrd.

sagar.1986 01-19-2007 03:39 PM

Can you be more specific? How to use udevtest? I am using initrd...


All times are GMT -5. The time now is 09:39 PM.