MandrivaThis Forum is for the discussion of Mandriva (Mandrake) 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.
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.
Hello.
I newly compile and install KDE3.2 under mandrake9.2, and find a strange thing. In order to play songs and hear, I change the permission of the files in /dev/sound as rwrwrw, but next time I restart the PC, they come back to rw----. Does mandrake do some magic on them? Really confusing me. May someone tell me why? Thanks.
I havent got a real answer for you but... stuff in /dev are devices that linux adds at boot time, if you really want them to have different permissions than default you need to tell linux to add those devices in a different way.
I doubt however that this is a good solution, probably the problem has something to do with your user not being in the correct group or something.
I know now the solution may be in the setting of devfs.
Does someone know about devfs and tell me how to edit it so that whoever logging in can own the 'write' permission of these device files just like mandrake-9.2 does?
Tony yu:
The following is from Linux Format magazine. It is about DVD drives but the section on /dev may be informative.
From LXF #41, Page 94
As for your DVD/CD question /dev/cdrom will be a symlink to your
actual device, such as /dev/hdc. This link will have been created during
the installation, and it makes no difference to anything if it's a CD-ROM
or a DVD drive actually attached to /dev/hdc.
Your instructions for creating /dev/dvd are slightly skewed, as you only
need to do
ln -sf /dev/hdc /dev/dvd
The kernel doesn't know anything about /dev/dvd, as anything which accesses /dev/dvd will really access /dev/hdc - /dev/dvd is simply a convenient alternative name for the device. If you want to create something in /dev then you either need to make the device with mknod, which is passed a major/minor number which defined the device, along with an entry to define it as either a block device or a character device. Something like a serial port is a character device and a hard drive or CD-ROM drive is a block device. The major/minor is what is used by the kernel to figure out what the device actually is and how to access it. Generally you will not want to use mknod to create devices unless you know what you're doing, but you may want to use ln to create links to specific devices with more useful names such as /dev/mouse, /dev/modem, /dev/zip and so forth.
If you're using devfs, note that when you reboot, any modifications you make within the /dev directory will disappear. You will want to look at /etc/devs, as there are entries in there which allow you to automatically create the symlink when the device is registered the kernel.
When I login as a common user by run-level 3, the permission of the file in /dev is correct meaning I can hear sound, play cd etc. However when logging in by run-level 5, all of the permission are set to root, not to the user I login as. Anyone has an answer? Thanks for your reply in advance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.