This is a discussion on Strange permissions problem within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hi, When I start my gentoo system up I can't log in as a user. Kde hangs on initialising ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, When I start my gentoo system up I can't log in as a user. Kde hangs on initialising peripherals. I found that by doing a console login as root and changing permissions of /dev/null from crw-rw---- to 666 I could then login. However I couldn't open a terminal etc as it never responded. No devices worked (Sound etc). Now if during that login I chmod -R 777 /dev everything works as normal. What should the permissions be on /dev and how do I set it so that they are by default? Thanks -- Entwisi |
| |||
| entwisi wrote: > > When I start my gentoo system up I can't log in as a user. Any error messages? > I found that by doing a console login as > root and changing permissions of /dev/null from crw-rw---- to 666 I could > then login. # ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Sep 27 14:35 /dev/null Do you know of any reason why your /dev/null might revert to crw-rw----? > What should the permissions be on /dev > and how do I set it so that they are by default? # ls -l / | grep 'dev' drwxr-xr-x 16 root root 3520 Sep 27 13:36 dev Is this a new installation? Has your system ever been working correctly? What changed? -- Ben M. |
| |||
| On Tue, 27 Sep 2005 14:46:02 +0000, Ben Measures wrote: > entwisi wrote: >> >> When I start my gentoo system up I can't log in as a user. > > Any error messages? Nope, just hangs, nothing in /var/log/everything/current I have to kill X to get control back > >> I found that by doing a console login as root and changing permissions >> of /dev/null from crw-rw---- to 666 I could then login. > > # ls -l /dev/null > crw-rw-rw- 1 root root 1, 3 Sep 27 14:35 /dev/null Fine, that is what my other gentoo laptop is as well > > Do you know of any reason why your /dev/null might revert to crw-rw----? > Absolutely no idea that's why I'm asking. I'm wondering if something was updated during an emerge -u world >> What should the permissions be on /dev and how do I set it so that they >> are by default? > > # ls -l / | grep 'dev' > drwxr-xr-x 16 root root 3520 Sep 27 13:36 dev > > > Is this a new installation? Has your system ever been working correctly? > What changed? It is a relatively new install but was working fine until a couple of weeks ago. Unfortunately the lappy had to go back as it developed a screen fault so I'm not sure of an exact date it started doing it. It gets reset everytime I restart the laptop. What process sets up the /dev hierarchy on bootup? -- Entwisi |
| |||
| entwisi wrote: > On Tue, 27 Sep 2005 14:46:02 +0000, Ben Measures wrote: >>entwisi wrote: >> >>>When I start my gentoo system up I can't log in as a user. >> >>Any error messages? > > Nope, just hangs, nothing in /var/log/everything/current I have to kill X > to get control back Oh, an X login as user. If not explicitly stated, a console login is assumed (we are on *nix, you know). >>Do you know of any reason why your /dev/null might revert to crw-rw----? > > Absolutely no idea that's why I'm asking. I'm wondering if something was > updated during an emerge -u world > > [...] What process sets up the /dev hierarchy on > bootup? Do you have udev? If so, check you have the following line in /etc/udev/rules.d/50-udev.rules : > KERNEL=="null", NAME="%k", MODE="0666" Also, check /etc/udev/permissions.d/50-udev.permissions for: > null:root:root:0666 Hth, -- Ben M. |
| |||
| On Wed, 28 Sep 2005 10:05:47 +0000, Ben Measures wrote: > > Do you have udev? If so, check you have the following line in > /etc/udev/rules.d/50-udev.rules : >> KERNEL=="null", NAME="%k", MODE="0666" > This exists but I noticed that a lot of stuff is set to 0600, Am I right in thinking that I can change these to 0666? -- Entwisi |
| ||||
| entwisi wrote: > Ben Measures wrote: > >>Do you have udev? If so, check you have the following line in >>/etc/udev/rules.d/50-udev.rules : >> >>>KERNEL=="null", NAME="%k", MODE="0666" > > This exists but I noticed that a lot of stuff is set to 0600, Am I right > in thinking that I can change these to 0666? No, some things do need to be 0600. Since udev is creating /dev/null with mode="0666" there must be something else changing the mode afterwards. What it is I'm not sure - all out of ideas here. -- Ben M. |