From: yermej Date: 2007-12-01T17:59:59+09:00 Subject: Re: run system command as user On Nov 30, 7:56 pm, Trey wrote: > I'm in need of running a system command as another user than the user > that is executing the ruby script. Is this possible? Can I execute > su (and somehow supply the correct password), then run the command? Depending on how much control you have over the system and what's available, you might be able to configure sudo to allow your script to run the command as a different user without a password. If it's available and you're able to configure sudo on the system (or have someone do it for you), check the sudoers man page for info on the NOPASSWD tag.