Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
|
|
10-01-2002, 09:35 PM
|
#1
|
LQ Newbie
Registered: Aug 2001
Location: Dallas, TX
Distribution: Red Hat 7.3/Mandrake 8.2
Posts: 29
Rep:
|
Getting persmissions to stick
I installed the drivers for a Conexant Riptide sound card. Now, in order to use the drivers, I'm trying to change the permissions on /dev/sound/dsp and /dev/sound/mixers. To do this, i browse to the files in Konquerer, right click, select the permissions tab, and change the permissions. Then, when I logout and back in, the permissions don't stick. I get the same results when I try changing them from a console. Having superuser permissions also doesn't seem to help, and I've tried reinstalling the files. Any other ideas?
|
|
|
10-02-2002, 01:14 AM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
What is the command you use to change the permissions in a console?
Are you running KDE all the time (i.e., you log out to the KDE login
manager), or do you log out of KDE back to a console, then restart X and
KDE? If you are restarting KDE, it may be unloading your sound modules,
which would cause the files to disappear and then reappear when you
start KDE again.
Have you tried this in the non X environment -- just your basic console?
To make sure the permissions are always correct on reboot, there are
several things you can try:
1) Least dangerous, most sloppy: I think in RH, Mdk, there is a directory
called /etc/init.d where initialization scripts are kept. I BELIEVE that if
you put an executable file in there, it will be run on boot, but I'm not
sure. Anyway, if that's the case, you could make a file called sound.sh
and in it write a script like so:
#!/bin/sh
if [ -f /dev/sound/dsp ]; then
chmod 777 /dev/sound/dsp
fi
if [ -f /dev/sound/mixers ]; then
chmod 777 /dev/sound/mixers
fi
You would then chmod +x /etc/init.d/sound.sh. The chmod line assumes
you want everyone to be able to do everything to the files, which may not
be the case.
man chmod
If you already have a sound initialization script, you could just add the
if-then statements above to the end of said script.
2) Much more dangerous, needs lots of reading (and understanding) on
your part. You may be running something called devfs, which is the
kernel's new way of dealing with devices. Currently, if you have
devices that need to have different from default permissions, you need
to set that up in the /etc/devfsd.conf file. This is NOT a file that you
can just simply edit with impunity. It can very easily make your system
unbootable. Read the man pages on devfsd, read the documentation
in /usr/src/linux/Documentation/filesystems/devfs (if it exists), then
reread it all. I have had to use my boot CD several times because of a
slight mistake in syntax or whatever.
|
|
|
10-02-2002, 07:11 AM
|
#3
|
Moderator
Registered: May 2001
Posts: 29,415
|
If dir /etc/security exists you could try setting the permissions from moses' 1st suggestion in /etc/security/console.perms.
Dunno if this works if for level 5 logins tho.
|
|
|
All times are GMT -5. The time now is 07:26 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
|
|