Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-bash: /dev/dsp: Permission denied[Risolto[misteriously]]
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
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Tue Sep 02, 2003 6:13 pm    Post subject: -bash: /dev/dsp: Permission denied[Risolto[misteriously]] Reply with quote

Dunque sono riuscito ad installare alsa. Vedo che devo essere nel gruppo audio per poter accedere a /dev/dsp. Faccio
Code:
usermod -G audio mioutente
provo a far im cat di un qche .wav su /dev/dsp, ma :
Code:

giakomino@amd giakomino $ cat prova.wav >/dev/dsp
-bash: /dev/dsp: Permission denied

Strano, perché cmq i permessi li ho su /dev/dsp:
Code:

amd giakomino # ls -l /dev/dsp
lr-xr-xr-x    1 root     audio           9 Sep  2 18:15 /dev/dsp -> sound/dsp

Inutile dire che da root funzia tutto :(

Ciao
jaco


Last edited by JacoMozzi on Tue Sep 02, 2003 8:32 pm; edited 1 time 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: Tue Sep 02, 2003 6:29 pm    Post subject: Reply with quote

Devi poter scrivere sul device. Fai:
Code:
# chmod 775 /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
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Tue Sep 02, 2003 6:43 pm    Post subject: Reply with quote

cerri wrote:
Devi poter scrivere sul device. Fai:
Code:
# chmod 775 /dev/dsp


Veramente io /dev/dsp l'ho con i permessi che ha Jaco e funziona... più che altro andrei a controllare /etc/devfsd.conf che abbia impostato i permessi corretti alle voci relative a sound/.* e dsp/.* (root.audio 660 entrambi). Ma se fosse questo vorrebbe dire che non ha letto bene la guida :twisted:
(controlla quindi i permessi di /dev/sound/dsp)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Tue Sep 02, 2003 7:10 pm    Post subject: Reply with quote

Me la sono cavata :lol:
La guida l'ho letta e riletta ed infatti:
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

Provo a dare i permessi di execuzio, nn si sa mai
Ciao
Jaco
Back to top
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Tue Sep 02, 2003 7:13 pm    Post subject: Reply with quote

Riavviai l'ordinatore ed il problema spari anche se i permessi cambiarono:
Code:
giakomino@amd giakomino $ ls -l /dev/dsp
lr-xr-xr-x    1 root     root            9 Sep  2 20:55 /dev/dsp -> sound/dsp

Mi spiegate come mai successe tutto ciò? :roll:
Ciao
jaco
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Tue Sep 02, 2003 10:10 pm    Post subject: Reply with quote

JacoMozzi wrote:
Riavviai l'ordinatore ed il problema spari anche se i permessi cambiarono:
Code:
giakomino@amd giakomino $ ls -l /dev/dsp
lr-xr-xr-x    1 root     root            9 Sep  2 20:55 /dev/dsp -> sound/dsp

Mi spiegate come mai successe tutto ciò? :roll:
Ciao
jaco


Probabilmente avevi impostato i file corretti, configurato il tutto ma poi non avevi avviato/fatto leggere i file di configurazione dal tuo sistema, che ancora usava le vecchie impostazioni caricate all'avvio. Sarebbe stata la prossima cosa che t'avrei detto di provare ;)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


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

PostPosted: Wed Sep 03, 2003 7:21 am    Post subject: Reply with quote

Ma quali sono i permessi di /dev/sound/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
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Wed Sep 03, 2003 9:50 am    Post subject: Reply with quote

cerri wrote:
Ma quali sono i permessi di /dev/sound/dsp?


crw-rw---- 1 root audio

Questi sono i miei (se può essere utile come raffronto). Ovviamente funziona tutto alla perfezione ;)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Wed Sep 03, 2003 6:16 pm    Post subject: Reply with quote

Code:
crw-------    1 root     audio   /dev/sound/dsp
Coincidono

:D
Ciao
Jaco
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Sep 03, 2003 6:20 pm    Post subject: Reply with quote

JacoMozzi wrote:
Code:
crw-------    1 root     audio   /dev/sound/dsp
Coincidono

:D
Ciao
Jaco

Quelli sono sbagliati, impediscono al gruppo 'audio' di usare il device.

Controlla in '/etc/security/console.perms', io ho dovuto editarlo...
_________________
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
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Wed Sep 03, 2003 6:27 pm    Post subject: Reply with quote

Cavolacci, ho detto che coincidevano...invece nn é vero. Cmq é strano che per il mio utente funzioni, guardando i permessi non dovrebbe funzionare. Ma mplayer cosa utilizza, se non /dev/sound/dsp?
Infatti l'accesso é negato a /dev/sound/dsp :roll:
Non riesco a capire:
Code:

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 24000->176400 (192.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
audio_setup: [b]Can't open audio device /dev/sound/dsp: Permission denied[/b]
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 44100 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: 1 soundcard found, using: hw:0,0
alsa9: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Video: no video
Starting playback...

Ciao
Jaco
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Wed Sep 03, 2003 6:33 pm    Post subject: Reply with quote

JacoMozzi wrote:
Code:
crw-------    1 root     audio   /dev/sound/dsp
Coincidono


Bevi di meno, l'alcol fa male al fegato ma non solo... :lol:

(controlla di nuovo i file, quelli di alsa e quelli che t'ha detto bsolar)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
JacoMozzi
l33t
l33t


Joined: 12 May 2003
Posts: 645
Location: Giubiasco world(EU(CH(TI)))

PostPosted: Wed Sep 03, 2003 6:53 pm    Post subject: Reply with quote

È vero l'alcol fa male :lol:
Ho controllato il file che m'ha detto bsolar e quelli di alsa e sn tutti ok. Cmq strano che funziona :roll:
Jaco
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