How to create linux user with privileges

2019-09-19 10:18发布

问题:

I need to install software on Linux, but it requires me to be a different user other than root. So I created a new user with useradd, created the password with passwd, but now I can't use simple commands in linux which I need to do the installation. i.e. I can't use cd, ls, or anything...

So my question is how do I create a new user which is able to use all of the same commands as the root user?

回答1:

You could use "sudo" in front of your commands to use a substitute user. It allows you to have admin privileges without being root (dangerous).

e.g.

sudo apt-get thePackageIWant

See the useful instructions here



标签: linux