Re: [arch-general] ruby 1.9.3_p125-1 in [extra]
On Saturday 25 Feb 2012 14:04:03 Thomas Dziedzic wrote:
If you run sudo gem install foo, it will install to /root/.gem/ruby
Are you sure? Won't it install to your normal user's home, but with root privileges? Paul
On Sun, Feb 26, 2012 at 4:40 AM, Paul Gideon Dann <pdgiddie@gmail.com> wrote:
On Saturday 25 Feb 2012 14:04:03 Thomas Dziedzic wrote:
If you run sudo gem install foo, it will install to /root/.gem/ruby
Are you sure? Won't it install to your normal user's home, but with root privileges?
Paul
I'm sure
On Sun, Feb 26, 2012 at 5:17 PM, Thomas Dziedzic <gostrc@gmail.com> wrote:
On Sun, Feb 26, 2012 at 4:40 AM, Paul Gideon Dann <pdgiddie@gmail.com> wrote:
On Saturday 25 Feb 2012 14:04:03 Thomas Dziedzic wrote:
If you run sudo gem install foo, it will install to /root/.gem/ruby
Are you sure? Won't it install to your normal user's home, but with root privileges?
Paul
I'm sure
Depends on what "sudo" does. gem will do the wrong thing if sudo leaves HOME set to your user's home (either via env_keep or sudo -E).
On Sunday 26 Feb 2012 17:44:51 Jan Steffens wrote:
On Sun, Feb 26, 2012 at 5:17 PM, Thomas Dziedzic <gostrc@gmail.com> wrote:
On Sun, Feb 26, 2012 at 4:40 AM, Paul Gideon Dann <pdgiddie@gmail.com> wrote:
On Saturday 25 Feb 2012 14:04:03 Thomas Dziedzic wrote:
If you run sudo gem install foo, it will install to /root/.gem/ruby
Are you sure? Won't it install to your normal user's home, but with root privileges?
Paul
I'm sure
Depends on what "sudo" does. gem will do the wrong thing if sudo leaves HOME set to your user's home (either via env_keep or sudo -E).
Yep; you're absolutely right: # sudo bash -c "echo \$HOME" This returns "/root". Paul
participants (3)
-
Jan Steffens
-
Paul Gideon Dann
-
Thomas Dziedzic