18.05.2016 Views

Mittwoch, 18. Mai, 2016

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Finishing Angular TODO application and deploying to production 145<br />

DO_9_rootLogin<br />

Create a new user<br />

Using root user in linux is bad practice, so now you’re going to create a new user with the following<br />

command:<br />

1 useradd nikola<br />

Of course, you can use any username you want. After this add the user to the sudo group by<br />

executing the following command:<br />

1 gpasswd -a nikola sudo<br />

The sudo group enables the user nikola to use the sudo command when using some commands<br />

that are restricted to root user. You can learn more about sudo here²¹⁷. The image below shows the<br />

example of the commands I just listed:<br />

²¹⁷https://www.digitalocean.com/community/tutorials/how-to-add-delete-and-grant-sudo-privileges-to-users-on-a-debian-vps

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!