lyndonJ
lyndonJ

Reputation: 13

Linux - running root installed program as non-root

I installed RVM, then Ruby 2.3.0 and Rails 4.2.5 as super-user. I can access the program as root but not as a normal user.

# rails -v 
Rails 4.2.5

$ rails -v
/usr/bin/env: ruby1.9.1: No such file or directory

Would I need to delete and reinstall the program or is there a workaround? Sorry this is a newbie question I know but I'm lost.

Upvotes: 1

Views: 943

Answers (1)

neallred
neallred

Reputation: 770

Is there a reason you especially need a work-around? If not, it would probably be easiest to re-install using sudo. The reason is that when logged in as root, programs install only for root user. When using sudo, they install for all users.

To avoid using apt-get, you could try using sudo curl

See here for more information: https://askubuntu.com/questions/258057/installed-application-as-root-unable-to-use-by-other-user

Upvotes: 1

Related Questions