From: Park Ji-In Date: 2005-08-25T19:06:40+09:00 Subject: Re: getuid 2005-08-25 (목), 18:32 +0900, Leslie Viljoen 쓰시길: > All I really need is: > > if Etc.getuid != 0 > puts "You are not root" > exit > end > How about this? $ cat uid.rb puts Process.uid $ ruby uid.rb 1000 $ sudo ruby uid.rb 0