1. 程式人生 > >增加使用者的sudo許可權

增加使用者的sudo許可權

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使用者有相同的許可權,操作也不需要密碼。