用户和用户组

useradd(8), userdel(8)usermod(8) 命令分别用来添加、删除和修改用户。passwd(1)命令用来修改密码。

groupadd(8)groupdel(8)groupmod(8) 命令分别用来添加、删除和修改组。groups(1) 命令列出一个用户所属的所有组。

默认 shell

用户的默认shell可以用 chsh(1) 来更改。

$ chsh -s <shell> <user_name>

<shell> 必须是指定的 shell 的路径 /etc/shells 或者输出 chsh -l,它提供了已安装 shell 的列表。

sudo

sudo(8) 是默认安装的。但可能没有根据您的需要进行适当配置。如果你想使用它,请配置 sudo。。

以 root 身份使用 visudo(8) 来编辑 sudoers(5) 文件。

请取消注释该行

#%wheel ALL=(ALL) ALL

然后将用户添加到 wheel 用户组.

默认用户组

Void Linux 默认定义的一些组

GroupDescription
rootComplete access to the system.
binUnused - present for historical reasons.
sysUnused - present for historical reasons.
kmemAbility to read from /dev/mem and /dev/port.
wheelElevated privileges for specific system administration tasks.
ttyAccess to TTY-like devices:
/dev/tty*, /dev/pts*, /dev/vcs*.
tapeAccess to tape devices.
daemonSystem daemons that need to write to files on disk.
floppyAccess to floppy drives.
diskRaw access to /dev/sd* and /dev/loop*.
lpAccess to printers.
dialoutAccess to serial ports.
audioAccess to audio devices.
videoAccess to video devices.
utmpAbility to write to /var/run/utmp, /var/log/wtmp
and /var/log/btmp.
admUnused - present for historical reasons. This group was
traditionally used for system monitoring, such as viewing
files in /var/log.
cdromAccess to CD devices.
opticalAccess to DVD/CD-RW devices.
mailUsed by some mail packages, e.g. dma.
storageAccess to removable storage devices.
scannerAbility to access scanners.
networkUnused - present for historical reasons.
kvmAbility to use KVM for virtual machines, e.g. via QEMU.
inputAccess to input devices: /dev/mouse*, /dev/event*.
plugdevAccess to pluggable devices.
nogroupSystem daemons that don't need to own any files.
usbmonAccess to /dev/usbmon*.
usersOrdinary users.
xbuilderTo use xbps-uchroot(1) with xbps-src.