-1

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?

choroba
  • 231,213
  • 25
  • 204
  • 289
Concarney
  • 21
  • 1
  • 1
  • 4

1 Answers1

0

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

Jeff Watkins
  • 6,343
  • 16
  • 19
  • Sudo with cd still doesn't work... It says that the command is not found. – Concarney Dec 03 '14 at 12:28
  • sudo doesn't work with some core stuff like cd. You need to grant privileges to the directory for the user you're logged in as, you can use chmod to do this though IIRC. – Jeff Watkins Dec 03 '14 at 13:14