Featured

Create new sudo user

Create a non-root user and add to the sudo group for administrative tasks.

Creates a new system user and adds them to the sudo group, allowing them to run privileged commands with sudo. Best practice is to use a named user instead of root for all day-to-day operations.

When you need this: When you need a human operator or deploy user with controlled elevated privileges.

Variables

Use lowercase, no spaces. Common choices: deploy, ubuntu, admin.

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.