浏览代码

dracut/adduser: add user to the audio/video groups.

Juan RP 10 年之前
父节点
当前提交
ca8d1ff70b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dracut/adduser.sh

+ 1 - 1
dracut/adduser.sh

@@ -23,7 +23,7 @@ if ! grep -q ${USERSHELL} ${NEWROOT}/etc/shells ; then
 fi
 
 # Create new user and remove password. We'll use autologin by default.
-chroot ${NEWROOT} useradd -m -c $USERNAME -G wheel -s $USERSHELL $USERNAME
+chroot ${NEWROOT} useradd -m -c $USERNAME -G audio,video,wheel -s $USERSHELL $USERNAME
 chroot ${NEWROOT} passwd -d $USERNAME >/dev/null 2>&1
 
 # Setup default root/user password (voidlinux).