Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Needs help with user rights management.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
FINITE
Guru
Guru


Joined: 10 May 2002
Posts: 449

PostPosted: Mon Jun 03, 2002 2:02 am    Post subject: Needs help with user rights management. Reply with quote

Ok, so I set my users rights using kuser in KDE. I switch to that user and I cannot use audio as weel as not being able to mount my windows partitions or navigate certain directories. Is there a single command to add rights to be able to use sound and navigate directories. I think that I have the sound part figured out and maybe even partition mounting but no the directories. I even added this user to the root group and still I have problems. Well, thanks for any and all help.
Back to top
View user's profile Send private message
sulu
Guru
Guru


Joined: 21 May 2002
Posts: 399
Location: Dornbirn/Austria

PostPosted: Mon Jun 03, 2002 3:30 am    Post subject: Reply with quote

Hi finite.

Had some problem with non-root-users myself.

For some services, like audio, the user has to be member of the corresponding group.

You acn attach the user to a group using the KDE-User-Manager but
i found it more convenient to edit the /etc/group file and
add the user at the end of the group i intend to use.

example:
user andi should be member of wheel, audio, cdrom
so add andi to the according entries in /etc/group

wheel::10:root,andi
audio::18:andi
cdrom::19:andi

cya
Sulu
Back to top
View user's profile Send private message
FINITE
Guru
Guru


Joined: 10 May 2002
Posts: 449

PostPosted: Mon Jun 03, 2002 5:22 pm    Post subject: Reply with quote

Thanks sulu.
Back to top
View user's profile Send private message
red2
n00b
n00b


Joined: 03 Jun 2002
Posts: 57

PostPosted: Mon Jun 03, 2002 8:51 pm    Post subject: Sound still only works as root Reply with quote

My user can is in group wheel and audio and strangely enough he can
su to root, yet sound is a no-go.

(Sound works great for root).

Any other suggestions?

thanks
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Mon Jun 03, 2002 8:59 pm    Post subject: Re: Sound still only works as root Reply with quote

red2 wrote:
My user can is in group wheel and audio and strangely enough he can
su to root, yet sound is a no-go.

(Sound works great for root).

Any other suggestions?

thanks


You sure he's in the audio group? Try typing "groups" when the user is logged in.
If it is in there, then it might be some misconfiguration of PAM or something. First try that, then we'll see.
Hope you'll find a solution
Back to top
View user's profile Send private message
red2
n00b
n00b


Joined: 03 Jun 2002
Posts: 57

PostPosted: Mon Jun 03, 2002 9:19 pm    Post subject: Reply with quote

Already done that.
groups tells me that the user is in the users, wheel and audio group.

Strangely enough he can su to root, yet audio doesn't work.

Yes, I am confused too. Any helps on figuring out the PAM side of things would be great!. Thanks.
Back to top
View user's profile Send private message
FINITE
Guru
Guru


Joined: 10 May 2002
Posts: 449

PostPosted: Mon Jun 03, 2002 9:22 pm    Post subject: Reply with quote

I think that this may be the problem that I am having too. The "pam" side of things that is. My user is in the audio group but cannot use any audio. I also can su. I am in a little bit different situation in that I am using oss for sound and have to run sound-on to start the sound driver and sound-off to stop it. As user I cannot even do this, that I can remember.
Back to top
View user's profile Send private message
CowboyNeal
n00b
n00b


Joined: 16 May 2002
Posts: 44
Location: The Netherlands

PostPosted: Tue Jun 04, 2002 9:12 am    Post subject: Reply with quote

I had the same problem. It turns out to be /etc/security/console.perms.
Change vc/[0-9][0-9]* to /dev/vc/[0-9]* in <console>=.

I'm not in the audio group, but when I login local, pam_console will set ownership:
Code:

$ ls -l /dev/sound/
total 0
crw-------    1 roy      audio     14,   4 Jan  1  1970 audio
crw-------    1 roy      audio     14,   3 Jan  1  1970 dsp
crw-------    1 roy      audio     14,   5 Jan  1  1970 dspW
crw-------    1 roy      audio     14,   0 Jan  1  1970 mixer
crw-------    1 roy      audio     14,   1 Jan  1  1970 sequencer
crw-------    1 roy      audio     14,   8 Jan  1  1970 sequencer2


When I logout, I'll loose ownership of these devices.

(this works also pretty nice for cdburners and floppy)
Back to top
View user's profile Send private message
red2
n00b
n00b


Joined: 03 Jun 2002
Posts: 57

PostPosted: Tue Jun 04, 2002 4:48 pm    Post subject: Reply with quote

FINALLY! I figured out my problem.
I catted a .wav file from kde to /dev/dsp (cat file.wav > /dev/dsp) and
I heard crackling when I was logged in as a user!

So I figured it had to be a problem with kde.
I solved it by the following command
rm -f ~/.kde*
and re-logging in. When I came back, I had sound!
One thing down, now I need to just get scsi working,
compact flash mounting, xine to compile (under k6),
...., etc, then I will have the ultimate distro.
Back to top
View user's profile Send private message
Attitude
n00b
n00b


Joined: 19 Apr 2002
Posts: 48
Location: Murfreesboro, TN

PostPosted: Tue Jun 04, 2002 6:04 pm    Post subject: Reply with quote

I understand where you are comeing from. I still can not get cd burning to work with any user cept root.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum