A photo of Mitesh Shah

Mitesh Shah

Linux Expert | Automation Enthusiast | Security Consultant

Email Skype Github Twitter Resume Hire Me Keybase LinkedIn Stackoverflow


Setup User Account

Overview

Create New User Account

$ sudo useradd -m -s /bin/bash mitesh
$ sudo chmod 750 /home/mitesh

Grant NGINX Read Permissions

$ sudo usermod -G mitesh www-data

Setup Custom Bash Prompt PS1

$ sudo echo 'PS1="\`if [ \$? = 0 ]; then echo \[\e[37m\]^_^[\u@\H:\w]\\$ \[\e[0m\]; else echo \[\e[31m\]O_O[\u@\H:\w]\\$ \[\e[0m\]; fi\`"' >> /home/mitesh/.bashrc

Setup Directory

$ su - mitesh
$ mkdir -p /home/mitesh/vhosts/{htdocs,ssl,conf,logs}




Post Navigation