rootでは音が鳴るが一般ユーザーアカウントでは鳴らない。これは音だけの問題に関わらず、デバイスファイルが一般ユーザー権限で利用できるかどうかに原因がある。
ここでの「音」に関する例では、次のようにデバイスファイルディレクトリ下「/dev/」から「dsp」、「audio」のパーミッションを見てみよう。
# chmod 666 /dev/dsp # chmod 666 /dev/audio # chmod 666 /dev/audio0 # ls -l /dev/audio* lrwxrwxrwx 1 root root 11 12月 9 11:39 /dev/audio -> /dev/audio0 crw-rw-rw- 1 root root 14, 4 12月 9 11:39 /dev/audio0 c--------- 1 root root 14, 20 12月 9 11:39 /dev/audio1 c--------- 1 root root 14, 36 12月 9 11:39 /dev/audio2 c--------- 1 root root 14, 52 12月 9 11:39 /dev/audio3 c--------- 1 root root 14, 7 8月 31 08:31 /dev/audioctl |
Copyright © ITmedia, Inc. All Rights Reserved.