我发现有一个名为的用户speech-dispatcher
属于该组audio
(基于groups speech-dispatcher
输出)。但它没有在getent group
命令下列出!问题是什么?
$ getent passwd | grep [s]peech-dispatcher
speech-dispatcher:x:109:29:Speech Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh
cat /etc/passwd | grep [s]peech-dispatcher
speech-dispatcher:x:109:29:Speech Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh
$ groups speech-dispatcher
speech-dispatcher : audio
getent group | grep [a]udio
audio:x:29:pulse
$ cat /etc/group | grep [a]udio
audio:x:29:pulse
答案1
该audio
组是用户的主要组(由中的speech-dispatcher
GID 表示,与中的组的 GID 匹配)。29
/etc/passwd
audio
/etc/group