From: Dreamcat Four Date: 2010-11-18T19:27:57+09:00 Subject: Calling a bash script creates files as UID 501 ? Hi, I have to run an installer script on the system, via ruby. ruby -e "$(curl -fsS https://gist.github.com/raw/542746/install_rvm.rb)" This is run from a sudo environment (as root user). Theres really very little I can do about that aspect. Anyway. The problem occurs when "install_rvm.rb" calls the following installer: system "/usr/local/rvm/src/rvm/scripts/install --prefix /usr/local/rvm/" The installer installs its files to --prefix "/usr/local/rvm/". However all those files it creates / copies are somehow all UID 501? But theres no UID 501 on the computer? ?? This supposed user doesnt actually exist. The bash installer script itself does not cause this. Eg if i run from the commandline: sudo /usr/local/rvm/src/rvm/scripts/install --prefix /usr/local/rvm/ Then all the files are created all as user "root" (UID=0). What could be happening here? dreamcat4 dreamcat4@gmail.com -- Posted via http://www.ruby-forum.com/.