From: Ammar Ali Date: 2010-10-07T16:28:05+09:00 Subject: Re: testing if a script is run via sudo 2010/10/7 Une Bévue > > Is tehre a way to test if a ruby script is run as a sudoer user ? A cleaner way would be to use the Process::UID module, namely the #eid method. HTH Ammar