Ubuntu

為所有使用者永久授予 /dev/snd 權限?

  • September 24, 2020

重啟後

~$ arecord -l
arecord: device_list:270: no soundcards found...

$ sudo arecord -l
**** List of CAPTURE Hardware Devices ****
Home directory not accessible: Permission denied
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
 Subdevices: 1/1
 Subdevice #0: subdevice #0

如果我這樣做

sudo chmod -R a+rw /dev/snd

開始arecord看到沒有sudo.

不幸的是,重新啟動後再次沒有權限。

預設情況下,如何使設備對普通使用者可讀?

我要把自己加到audio組裡。這是群主/dev/snd/*

引用自:https://unix.stackexchange.com/questions/610971