LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 10-01-2002, 09:35 PM   #1
dictatorofgoats
LQ Newbie
 
Registered: Aug 2001
Location: Dallas, TX
Distribution: Red Hat 7.3/Mandrake 8.2
Posts: 29

Rep: Reputation: 15
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?
 
Old 10-02-2002, 01:14 AM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
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.
 
Old 10-02-2002, 07:11 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Persmissions trocker767 Linux - Newbie 5 11-02-2005 06:23 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
USB-Stick? Please help GSX Debian 7 02-16-2005 03:12 AM
Mixing 512MB Ram 2700 stick with a 256MB 3200 stick? Will it screw things up? Fear58 Linux - Hardware 2 07-15-2004 02:20 PM
Persmissions changing on root directories? granatica Linux - Security 2 06-14-2004 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:00 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration