[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Username length inconsistencies.



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 <noel@megsinet.net>


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: