Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chi Prima Arriva Meglio Alloggia ...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 6:54 am    Post subject: Chi Prima Arriva Meglio Alloggia ... Reply with quote

Ho un problemino da sempre che vorrei risolvere una volta per tutte...
La situazione e questa ... dati tre utenti: root, joe, gilles

quando avvio la mia linux box il primo che entra prende 'posesso' di certi devices (per esempio il /dev/dsp) rendendoli inutilizzabili ad altri.

Esempio pratico:

1. avvio gentoo
2. entro come gilles e faccio qualcosa
3. esco e rientro come joe e avvio kde

a questo punto per esempio kde mi avvisa che /dev/dsp e di proprieta di altri e non e utilizabile. se vado a vedere effettivamente e di gilles :!:

Come e' possibile che il primo che accede si becca come propietario tutti i devs :?: :?: :?: :?: :?:


Grazie per any consiglium :))

Joe :?:
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Sat Sep 20, 2003 8:11 am    Post subject: Reply with quote

Code:
# ls -al /dev/dsp
lr-xr-xr-x    1 root     root            9 Sep 20 09:58 /dev/dsp -> sound/dsp
# ls -al /dev/sound/dsp
crw-rw----    1 root     audio     14,   3 Jan  1  1970 /dev/sound/dsp

Così dovrebbero essere. L'utente non diventa proprietario di nulla, se è membro di 'audio' può accedere al device altrimenti no.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 8:19 am    Post subject: Reply with quote

eh eh eh lo so caro bsolar che DOVREBBE
ma cosi non e... ripeto da me diventa di chi prima accede al login.. e proprio non capisco perche.. adeso pere sempio che sono entrato come joe queso e il risultato:

bash-2.05b$ ls -la /dev/dsp
lr-xr-xr-x 1 root root 9 2003-09-20 10:31 /dev/dsp -> sound/dsp

ma ....
bash-2.05b$ ls -la /dev/sound/
totale 0
drwxr-xr-x 1 root root 0 1970-01-01 01:00 .
drwxr-xr-x 1 root root 0 1970-01-01 01:00 ..
crw------- 1 joe audio 14, 3 1970-01-01 01:00 dsp
crw------- 1 joe audio 14, 19 1970-01-01 01:00 dsp1
crw------- 1 joe audio 14, 35 1970-01-01 01:00 dsp2
crw------- 1 joe audio 14, 2 1970-01-01 01:00 midi
crw------- 1 joe audio 14, 0 1970-01-01 01:00 mixer
crw------- 1 joe audio 14, 16 1970-01-01 01:00 mixer1

come si spiega ????


Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
Benve
l33t
l33t


Joined: 13 Mar 2003
Posts: 897
Location: Italy Romagna

PostPosted: Sat Sep 20, 2003 8:45 am    Post subject: Reply with quote

Noto adesso che anche da me è così 8O
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 8:53 am    Post subject: Reply with quote

ahh ecco allora non sono l'unico !!!

Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
Panda
Apprentice
Apprentice


Joined: 31 Jul 2003
Posts: 223
Location: Cremona <=> Catania

PostPosted: Sat Sep 20, 2003 9:06 am    Post subject: Reply with quote

IgaRyu wrote:
ahh ecco allora non sono l'unico !!!

Joe


A me e' capitato una cosa simile con la webcam. Se entravo da root, attaccavo la webcam e provavo ad usarla /dev/video0 diventava di proprieta' dal primo che la usava.
Poi ho aggiunto il mio utente al gruppo 'video' e si e' sistemato tutto...

strana sta cosa...
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 9:14 am    Post subject: Reply with quote

Code:

bash-2.05b# cat /etc/group | grep audio
audio:x:18:joe,bot,seti


Io gli utenti in gruppo audio ce li ho ma continuo ad avere sto problema

joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sat Sep 20, 2003 9:39 am    Post subject: Reply with quote

Dai un'occhiata alle impostazioni di pam o di devfs. Sicuramente è lì il problema
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 9:54 am    Post subject: Reply with quote

Bsolar ... il mio devfs.conf dice ...

Code:

# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP          snd          MODLOAD ACTION snd
LOOKUP          dsp          MODLOAD
LOOKUP          mixer        MODLOAD
LOOKUP          midi         MODLOAD
REGISTER        sound/.*     PERMISSIONS root.audio 660
REGISTER        snd/.*       PERMISSIONS root.audio 660


il tuo e' uguale ?

Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 20, 2003 10:28 am    Post subject: Reply with quote

Sei sicuro di caricare i moduli alsa all'avvio della macchina? Li hai in autoload?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 10:31 am    Post subject: Reply with quote

bhe visto che se entro come utente A e starto kde l'audio va direi proprio di si :)

Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 20, 2003 10:45 am    Post subject: Reply with quote

Io non ne sarei cosi' sicuro... Controlla :)
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 10:50 am    Post subject: Reply with quote

se le case 'suonano' allora devono essere caricati... poi non uso moduli .. preferisco kernel monlitici

Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Sat Sep 20, 2003 11:09 am    Post subject: Reply with quote

Controlla in /etc/security/console.perms. Dovresti avere una linea tipo:
Code:
<console>  0600 <sound>      0660 root.audio

_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Benve
l33t
l33t


Joined: 13 Mar 2003
Posts: 897
Location: Italy Romagna

PostPosted: Sat Sep 20, 2003 11:21 am    Post subject: Reply with quote

da me c'è
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 11:45 am    Post subject: Reply with quote

Code:

<console>  0600 <sound>      0600 root.audio


da me c'e ma il secondo ottale e 600 non 660

Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
Benve
l33t
l33t


Joined: 13 Mar 2003
Posts: 897
Location: Italy Romagna

PostPosted: Sat Sep 20, 2003 11:52 am    Post subject: Reply with quote

IgaRyu wrote:
Code:

<console>  0600 <sound>      0600 root.audio


da me c'e ma il secondo ottale e 600 non 660

Joe


sorry avevo visto male, anche da me è cosy
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 12:20 pm    Post subject: Reply with quote

ahh ecco :) comque anche cambiandolo in 660 non cambia la situazinone....

E comunque pam nella gestione del devfs no dovrebbe aver a che fare visto che nell'/etc/devfsd.conf c'e' questa riga:

Code:

# Uncomment this to let PAM manage devfs
#REGISTER        .*           CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath


Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest


Last edited by IgaRyu on Sat Sep 20, 2003 12:26 pm; edited 2 times in total
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 20, 2003 12:25 pm    Post subject: Reply with quote

IgaRyu wrote:
se le case 'suonano' allora devono essere caricati... poi non uso moduli .. preferisco kernel monlitici

Il concetto e':

1) non puoi avere un kernel monolitico con alsa in quanto alsa sono solo moduli (su 2.4);
2) se fosse che il kernel te li carica da solo e non in autoload, ad esempio lanciando il tuo WM, non vorrei che ti settasse i parametri male, invece di lasciar fare a autoload.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 12:27 pm    Post subject: Reply with quote

Foers enon riesco a spiegarmi ... il problema sta a monte dell'avvio del WM

Il cambio di owner avvien ancora a livello di console prima di interessare X

Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 20, 2003 12:40 pm    Post subject: Reply with quote

Poco cambia, il mio era solo un esempio.

Fai cosi':
Code:
# fuser /dev/dsp

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sat Sep 20, 2003 12:50 pm    Post subject: Reply with quote

Code:

bash-2.05b# fuser /dev/dsp
/dev/dsp:             2216


... ?

Joe
_________________
One Flew East
One Flew West
Some Flew On The Kukool's Nest
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 20, 2003 1:28 pm    Post subject: Reply with quote

Code:
$ ps -eaf | grep 2216

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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