On Sun, May 31, 1998 at 11:32:18PM -0400, Alex Yukhimets wrote:
> 
> Wow, I think I'm going to open a zoo for root-checking methods:)
> 

Okay, how about this:

>cat /usr/local/bin/getuid
#!/bin/sh
USERNAME=`whoami`
IFS=":"
set `grep "^$USERNAME" /etc/passwd`
echo $3

-- 
   Deep in the fundamental heart of mind and universe, there is a reason
                                                - Slartibartfast
Noel Maddy <[EMAIL PROTECTED]>


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to