View previous topic :: View next topic |
Author |
Message |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 6:54 am Post subject: Chi Prima Arriva Meglio Alloggia ... |
|
|
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 ![Question :?:](images/smiles/icon_question.gif) _________________ One Flew East
One Flew West
Some Flew On The Kukool's Nest |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bsolar Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/806967053f23f4aede2da.jpg)
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Sat Sep 20, 2003 8:11 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 8:19 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Benve l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry_2.gif)
Joined: 13 Mar 2003 Posts: 897 Location: Italy Romagna
|
Posted: Sat Sep 20, 2003 8:45 am Post subject: |
|
|
Noto adesso che anche da me è così ![Shocked 8O](images/smiles/icon_eek.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 8:53 am Post subject: |
|
|
ahh ecco allora non sono l'unico !!!
Joe _________________ One Flew East
One Flew West
Some Flew On The Kukool's Nest |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Panda Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/77469666442a2412d8ae9b.jpg)
Joined: 31 Jul 2003 Posts: 223 Location: Cremona <=> Catania
|
Posted: Sat Sep 20, 2003 9:06 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 9:14 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Ibanez-RgX Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19316647813ee273fab14e9.png)
Joined: 19 Mar 2003 Posts: 165 Location: Rome
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 9:54 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cerri Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/7000506493e7cdb5c136c3.jpg)
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sat Sep 20, 2003 10:28 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 10:31 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cerri Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/7000506493e7cdb5c136c3.jpg)
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sat Sep 20, 2003 10:45 am Post subject: |
|
|
Io non ne sarei cosi' sicuro... Controlla ![Smile :)](images/smiles/icon_smile.gif) _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 10:50 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bsolar Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/806967053f23f4aede2da.jpg)
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Sat Sep 20, 2003 11:09 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Benve l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry_2.gif)
Joined: 13 Mar 2003 Posts: 897 Location: Italy Romagna
|
Posted: Sat Sep 20, 2003 11:21 am Post subject: |
|
|
da me c'è |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 11:45 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Benve l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry_2.gif)
Joined: 13 Mar 2003 Posts: 897 Location: Italy Romagna
|
Posted: Sat Sep 20, 2003 11:52 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 12:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cerri Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/7000506493e7cdb5c136c3.jpg)
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sat Sep 20, 2003 12:25 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 12:27 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cerri Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/7000506493e7cdb5c136c3.jpg)
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sat Sep 20, 2003 12:40 pm Post subject: |
|
|
Poco cambia, il mio era solo un esempio.
Fai cosi':
_________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
IgaRyu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 23 Jan 2003 Posts: 302 Location: Verona
|
Posted: Sat Sep 20, 2003 12:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cerri Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/7000506493e7cdb5c136c3.jpg)
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sat Sep 20, 2003 1:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|