Arch Linux USES su by default, but if you'd rather use sudo to gain root privileges, we can install it and add our user to the list of sudoers by using the following commands.
ArchLinux默认使用su,如果你还是愿意选择使用sudo来获得root权限,我们可以安装它,并且添加我们的用户到sudo使用者(sudoers)列表中,通过使用下面的命令。
If you are logged in as an ordinary user, you will either use su - to switch to root or sudo.
如果您作为一个普通用户登录,您可以使用su-切换到根目录或者sudo。
You can have many su entries in sudo, just be sure to separate each su entry with comma, like so.
在sudo中可以有许多su条目,只需用逗号分隔每个su条目即可,如下所示。
One solution is to use sudo with su, but first you must restrict them using su.
一个解决方案是对su使用sudo,但是首先必须限制他们使用su。
Now user India, who is a nosu group member, can su to Zulu via sudo.
现在,用户india (nosu组的成员)可以通过sudo使用su变成用户zulu。
Ubuntu has done a lot to popularize sudo by enforcing its use in place of encouraging users to use su to switch to the root account to install software and perform other administrative tasks.
Ubuntu在普及sudo上做了不少工作,强迫而非鼓励用户使用su转换到root帐号安装软件和执行其他管理任务。
Check the user can su via sudo to the account ukflag.
检查用户是否可以通过sudo变成ukflag。
Check the user can su via sudo to the account ukflag.
检查用户是否可以通过sudo变成ukflag。
应用推荐