Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-15-2005, 04:44 PM
|
#1
|
LQ Newbie
Registered: Nov 2003
Location: Ohio
Distribution: SUSE 9.0
Posts: 13
Rep:
|
udev is about to beat me (/dev/null, etc)
Sometime I ago I apparently somehow screwed up permissions on entries in /dev. Devices such as null, console, zero, etc, are now being created 'crw-rw--- root:root'. That makes it difficult for ordinary users to utilize those devices. Problems with /dev/null showed up in a number of places; when I changed its group to 'users', those problems went away. I could not open a terminal in X until I changed the group for /dev/ptmx to 'users'. I have googled and LQ-searched extensively and find a number of people have similar problems. The usual suggestions are to read about udev, and then use udev's rules and permissions to make the devices with the desired permissions. I have found threads ending with apparent success for physical devices (had, sda, scsi/usb devices), but no apparent successes with null, console, etc.
I have hesitated to post this question because of the appearance of being another in long line of similar questions. But, here I am.
I have learned a lot about udev and it permissions. I have modified the permissions involving the non-physical devices, but they don't seem to ever be applied. I have changed the defaults in /etc/udev/udev.conf. I can manually change permissions (or group membership), and devices will then work OK for the non-root user. But as soon as I reboot, the wrong permissions are back. I have deleted the devices to see if then the rules would apply, but they still come back wrong. I have read stuff that suggested to me to udev.tdb may cause devices to be re-created as they were at shutdown, so I deleted udev.tdb before rebooting. Still the devices come back wrong.
Are certain devices immune to udev? If so, where do I set the rules governing their creation? I hope some knowledgable person is patient enough to read to here, and can offer some advice related to changing permission or ownership for /dev/null, /dev/console, /dev/ptmx, and other non-physical devices.
|
|
|
06-16-2005, 11:16 AM
|
#2
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
I noticed the problem too, there seem to be a problem with the latest version of udev and "non physical" devices (null, random, urandom, most noticably). I suspect they done a "change" in configuration, mean you old config files need a "new config way".
But eh, I am lazy, so instead of reading tons of docu and fixing it an elegant way, I just added "chmod 777 /dev/null" to some bootup script (I use gentoo, I don't know about Suse, but don't you have some "rc.local" script? ). It works perfectly but I look like a total newbie :P
|
|
|
06-16-2005, 04:28 PM
|
#3
|
LQ Newbie
Registered: Nov 2003
Location: Ohio
Distribution: SUSE 9.0
Posts: 13
Original Poster
Rep:
|
Half_Elf, you might be on to something with your thought about changes in the later versions of udev. I know I upgraded Udev to version 58 (I think) recently. My problems may go back to that event. I'm away from my computer for a few days, but I'm going to try to explore that idea when I get back.
|
|
|
06-16-2005, 10:12 PM
|
#4
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
I use udev version 056 (from gentoo package), all this mess happened when I switched from 054. My config seems ok, in the 054 way, at least, so I guess the problem is udev.
If you find something,let me know
|
|
|
07-06-2005, 06:19 AM
|
#5
|
LQ Newbie
Registered: Jul 2005
Posts: 1
Rep:
|
I had the same problem after an emerge -u world with Gentoo. After some searching I found the following to solve all problems:
emerge --unmerge udev
rm -r /etc/udev
emerge udev
|
|
|
07-06-2005, 09:12 AM
|
#6
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
Ok so I was right, the configuration changed but Gentoo didn't updated it.
Hmmm probably quite more elegant than my solution, I'll add this on my "to-do when less-lazy list"
|
|
|
All times are GMT -5. The time now is 06:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|