LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-28-2004, 06:28 AM   #1
tony yu
Member
 
Registered: Sep 2003
Location: Taiwan
Distribution: mandriva 2006
Posts: 108

Rep: Reputation: 15
a question about file permission


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.
 
Old 02-28-2004, 08:22 AM   #2
rokka
Member
 
Registered: Feb 2004
Location: .se
Distribution: Ubuntu, debian
Posts: 124

Rep: Reputation: 15
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.

Perhaps you could try re-installing the card.
 
Old 04-09-2004, 05:47 AM   #3
tony yu
Member
 
Registered: Sep 2003
Location: Taiwan
Distribution: mandriva 2006
Posts: 108

Original Poster
Rep: Reputation: 15
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?
 
Old 04-09-2004, 09:19 AM   #4
C++Boar
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo
Posts: 68

Rep: Reputation: 16
Is it something you can mount ?

I guess it is not (stupid question ...)

Last edited by C++Boar; 04-09-2004 at 09:37 AM.
 
Old 04-09-2004, 12:30 PM   #5
CyberLord_7
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 69

Rep: Reputation: 15
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.
 
Old 04-13-2004, 10:18 AM   #6
tony yu
Member
 
Registered: Sep 2003
Location: Taiwan
Distribution: mandriva 2006
Posts: 108

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permission jh31480 Linux - Newbie 2 01-25-2005 06:42 PM
File Permission Question coopns Linux - Newbie 2 06-18-2004 01:44 PM
file/directory access permission question correro Linux - General 4 05-22-2003 07:48 PM
what's file permission for this? doublefailure Linux - Newbie 2 03-16-2002 11:21 AM
File Permission glock19 Linux - General 4 01-02-2002 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration