Re: [Cooker] 7.2 beta2 --/dev/dsp permissions

2000-09-16 Thread pgeorges

robert a écrit :
> 
> what are the correct permissions for /dev/dsp?
> 
> XMMS works fine when I run as root, but when I run XMMS as a user I get an
> error message about permissions denying access to /dev/dsp

I had the same problem, reported it some time ago. I keep synchronized
to cooker, and miracle : xmms now works as normal user.
So, I suspect a bug fix was commited a few days ago, but don't know
which package configures this.




Re: [Cooker] 7.2 beta2 --/dev/dsp permissions

2000-09-15 Thread robert

My /dev/dsp is not linked to anything.  Also it stays owned by root even when 
I log in as another user.  Is that correct?  From what I understand from your 
email /dev/dsp should be a link and /dev/dsp should be owned by the user when 
the user logs in.

My computer boots up to kdm.

Robert


On Fri, 15 Sep 2000, you wrote:
> On Fri, 15 Sep 2000, you wrote:
> >Guillaume Cottenceau a écrit :
> >> robert <[EMAIL PROTECTED]> writes:
> >> > what are the correct permissions for /dev/dsp?
> >> >
> >> > XMMS works fine when I run as root, but when I run XMMS as a user I
> >> > get an error message about permissions denying access to /dev/dsp
> >>
> >> the user physically logon on the machine should get it for him.
> >
> >Yes, it should :-)
> >In my own case, it's pure fantasy.
> >For the moment i have :
> >lrwxrwxrwx1 root audio  11 aoû  8 05:58 /dev/dsp ->
> >.../dev/dsp0
> >crw---1 guillaum audio 14,   3 jui 19 18:48 /dev/dsp0
> >crw---1 guillaum audio 14,  19 jui 19 18:48 /dev/dsp1
> >crw---1 guillaum audio 14,  35 jui 19 18:48 /dev/dsp2
> >crw---1 guillaum audio 14,  51 jui 19 18:48 /dev/dsp3
> >[guillaume@agathe guillaume]$ ll /dev/mixer*
> >lrwxrwxrwx1 root root   13 aoû  8 05:58 /dev/mixer ->
> >.../dev/mixer0
> >crw---1 guillaum audio 14,   0 jui 19 18:48 /dev/mixer0
> >crw---1 guillaum audio 14,  16 jui 19 18:48 /dev/mixer1
> >crw---1 guillaum audio 14,  32 jui 19 18:48 /dev/mixer2
> >crw---1 guillaum audio 14,  48 jui 19 18:48 /dev/mixer3
> >/dev/mixer and /dev/dsp symlink doesn't have the same group !?  And
> >what's the use of audio group in this situation ?
>
> Groups and users for a symlink don't matter at all. See the permissions
> of the symlink itself : rwxrwxrwx, always. What matters is the file pointed
> to.




Re: [Cooker] 7.2 beta2 --/dev/dsp permissions

2000-09-15 Thread Guillaume Rousse

David Faure a écrit :
> Groups and users for a symlink don't matter at all. See the permissions
> of the symlink itself : rwxrwxrwx, always. What matters is the file pointed to.
I know that, i just wanted to point out some level of incoherency in
login script setting perms : same situation, different results.

-- 
Guillaume Rousse
Iremia - Université de la Réunion

Plus petites unités de mesure 
- de longueur : le millimètre
- de volume : le millilitre
- d'intelligence : le militaire




Re: [Cooker] 7.2 beta2 --/dev/dsp permissions

2000-09-15 Thread David Faure

On Fri, 15 Sep 2000, you wrote:
>Guillaume Cottenceau a écrit :
>> 
>> robert <[EMAIL PROTECTED]> writes:
>> 
>> > what are the correct permissions for /dev/dsp?
>> >
>> > XMMS works fine when I run as root, but when I run XMMS as a user I get an
>> > error message about permissions denying access to /dev/dsp
>> 
>> the user physically logon on the machine should get it for him.
>
>Yes, it should :-)
>In my own case, it's pure fantasy.
>For the moment i have :
>lrwxrwxrwx1 root audio  11 aoû  8 05:58 /dev/dsp ->
>.../dev/dsp0
>crw---1 guillaum audio 14,   3 jui 19 18:48 /dev/dsp0
>crw---1 guillaum audio 14,  19 jui 19 18:48 /dev/dsp1
>crw---1 guillaum audio 14,  35 jui 19 18:48 /dev/dsp2
>crw---1 guillaum audio 14,  51 jui 19 18:48 /dev/dsp3
>[guillaume@agathe guillaume]$ ll /dev/mixer*
>lrwxrwxrwx1 root root   13 aoû  8 05:58 /dev/mixer ->
>.../dev/mixer0
>crw---1 guillaum audio 14,   0 jui 19 18:48 /dev/mixer0
>crw---1 guillaum audio 14,  16 jui 19 18:48 /dev/mixer1
>crw---1 guillaum audio 14,  32 jui 19 18:48 /dev/mixer2
>crw---1 guillaum audio 14,  48 jui 19 18:48 /dev/mixer3
>/dev/mixer and /dev/dsp symlink doesn't have the same group !?  And
>what's the use of audio group in this situation ?

Groups and users for a symlink don't matter at all. See the permissions
of the symlink itself : rwxrwxrwx, always. What matters is the file pointed to.

-- 
David FAURE, [EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2





Re: [Cooker] 7.2 beta2 --/dev/dsp permissions

2000-09-15 Thread Guillaume Rousse

Guillaume Cottenceau a écrit :
> 
> robert <[EMAIL PROTECTED]> writes:
> 
> > what are the correct permissions for /dev/dsp?
> >
> > XMMS works fine when I run as root, but when I run XMMS as a user I get an
> > error message about permissions denying access to /dev/dsp
> 
> the user physically logon on the machine should get it for him.

Yes, it should :-)
In my own case, it's pure fantasy.
For the moment i have :
lrwxrwxrwx1 root audio  11 aoû  8 05:58 /dev/dsp ->
../dev/dsp0
crw---1 guillaum audio 14,   3 jui 19 18:48 /dev/dsp0
crw---1 guillaum audio 14,  19 jui 19 18:48 /dev/dsp1
crw---1 guillaum audio 14,  35 jui 19 18:48 /dev/dsp2
crw---1 guillaum audio 14,  51 jui 19 18:48 /dev/dsp3
[guillaume@agathe guillaume]$ ll /dev/mixer*
lrwxrwxrwx1 root root   13 aoû  8 05:58 /dev/mixer ->
../dev/mixer0
crw---1 guillaum audio 14,   0 jui 19 18:48 /dev/mixer0
crw---1 guillaum audio 14,  16 jui 19 18:48 /dev/mixer1
crw---1 guillaum audio 14,  32 jui 19 18:48 /dev/mixer2
crw---1 guillaum audio 14,  48 jui 19 18:48 /dev/mixer3
/dev/mixer and /dev/dsp symlink doesn't have the same group !?  And
what's the use of audio group in this situation ?

Some time owner of the real devices isn't the user, but root (or system,
i can't remember), and audio group doesn't have write perms. So i have
to change them by hand.

I can't trace back such change to a particular config change (mostly due
to my daily frenetic cooker upgrade mania), but if someone could tell me
which scripts are responsible for establishing those perms, i'd like to
have a look. I precise i didn't change my security level, who stays
medium.

-- 
Guillaume Rousse
Iremia - Université de la Réunion

Plus petites unités de mesure 
- de longueur : le millimètre
- de volume : le millilitre
- d'intelligence : le militaire




Re: [Cooker] 7.2 beta2 --/dev/dsp permissions

2000-09-15 Thread Guillaume Cottenceau

robert <[EMAIL PROTECTED]> writes:

> what are the correct permissions for /dev/dsp?
> 
> XMMS works fine when I run as root, but when I run XMMS as a user I get an 
> error message about permissions denying access to /dev/dsp

the user physically logon on the machine should get it for him.


-- 
Guillaume Cottenceau -- Distribution Developer for MandrakeSoft
http://www.mandrakesoft.com/~gc/




Re: [Cooker] 7.2 beta2 --/dev/dsp permissions

2000-09-15 Thread Xavier Bertou

> what are the correct permissions for /dev/dsp?

I also have a problem. I have no [xkg]dm running on my machine. I log on
a virtual console, and then issue a startx most of the time. Everything
is good, and /dev/dsp becomes bertou:audio upon login. However, I
sometimes log off from the console, staying in the X session (nohuped).
Is there a way not to have the ownership of /dev/dsp to go back to root ?

Another thing, the permissions are 640 when owned by root. If it were
660, I could just add me in the audio group and it would be Ok. Is there
some reason for not having the permissions set to 660 ?