From: Daniel Berger Date: 2006-10-19T01:50:13+09:00 Subject: Re: Changing uid Alex Young wrote: > Hi all, > > I really should know this, but I can't for the life of me remember how > it goes. I want to change users within a Ruby script on Linux, but > Process::uid= only to takes an integer. What's the best way to odo the > username => UID lookup? require 'etc' uid = Etc.getpwnam('username').uid Regards, Dan