Add a user to Sudoers

xiaoxiao2021-02-28  20

File location:

/etc/sudoers

Special command to edit the file:

visudo

Find this:

## Allow root to run any commands anywhere root     ALL=(ALL)        ALL

Add this:

[username]     ALL=(ALL)        ALL

Done.

Switch user:

sudo [username]

转载请注明原文地址: https://www.6miu.com/read-1600381.html

最新回复(0)