From: John W Higgins Date: 2010-11-19T17:06:12+09:00 Subject: Re: Calling a bash script creates files as UID 501 ? --0016365ee0e00cd9ae049563616f Content-Type: text/plain; charset=ISO-8859-1 Good Evening, On Thu, Nov 18, 2010 at 11:30 PM, Robert Klemme wrote: > ... I'm not sure I understand how this can produce the difference between > > > system "/usr/local/rvm/src/rvm/scripts/install --prefix /usr/local/rvm/" > > and > > > sudo /usr/local/rvm/src/rvm/scripts/install --prefix /usr/local/rvm/ > > when the script apparently also uses sudo. Do you have an explanation? > > While I don't even use rvm myself - it clearly is a very smart little set of widgets that could easily be smart enough to differentiate the difference between running it as sudo/root and a regular user. It's very possible that it runs a chown to root only when run as sudo/root. That clearly is within a reasonable distance from the rest of the magic being performed here. And performed very very well it appears. John --0016365ee0e00cd9ae049563616f--