简体   繁体   中英

Can be dangerous to use the default ubuntu user in EC2 to do git clone?

So I have spun up a simple ubuntu EC2 istance with lamp.
I installed everything with apt-get as root sudo su

Now I have to clone the repository of the website, ie:

git clone ...

inside a dir in /var/www/...

Can I do this as ubuntu, or should I create another user and do git clone with this user?

if you can use root then it means you can also create user with specific privileges. I strongly suggest you to download dynamic content by user with only required privileges

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM