adduser deploy && usermod -aG sudo deploy

Category: VPS Management

adduser deploy && usermod -aG sudo deploy

Create a non-root user named 'deploy' and grant sudo access — run as root on first login

Best practice: never run production apps as root. This creates a dedicated user and adds them to the sudo group. Log in as this user for all future operations.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.