为什么我应该在部署 Web 应用程序之前将新用户添加到 Ubuntu?

Why should I add new user to Ubuntu before deploying web apps?

我正在研究部署 rails 应用程序,所有教程在开始之前都会添加新用户。为什么我应该添加新用户而不是只使用 root?

参考 https://gorails.com/deploy/ubuntu/16.04

这样做是为了安全,基本上 root 用户可以做任何事情,所以有风险。

"The root user is the administrative user in a Linux environment that has very broad privileges. Because of the heightened privileges of the root account, you are actually discouraged from using it on a regular basis. This is because part of the power inherent with the root account is the ability to make very destructive changes, even by accident."