1.Edit the file(Root user) cat /etc/sudoers ## Next comes the main part: which users can run what software on ## which machines (the sudoers file can be shared between multiple ## systems). ## Syntax: ## ## user MACHINE=COMMANDS ## ## The COMMANDS section may have other options added to it. ## ## Allow root to run any commands anywhere ken ALL=(ALL)NOPASSWD:ALL root ALL=(ALL) ALL 增加ken用户和root用户有相同的权限,操作也不需要密码。
增加用户的sudo权限
最新推荐文章于 2022-05-02 22:54:09 发布