Re: Username length inconsistencies.

1998-06-19 Thread Noel Maddy
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

Re: Username length inconsistencies.

1998-06-06 Thread Joey Hess
Alex Yukhimets wrote: > Well, this way is probably OK for dh_testroot, but "id -u" is absolutely > non-portable thing across different UNIX platforms... :( Good enough for dh_testroot, I think this is in debhelper 0.90. -- see shy jo I'm on a long trip, pardon any delays in my reply. -- To

Re: Username length inconsistencies.

1998-06-03 Thread Turbo Fredriksson
Dan Jacobowitz <[EMAIL PROTECTED]> writes: > On Sun, May 31, 1998 at 11:32:18PM -0400, Alex Yukhimets wrote: > > > > Sure, this would work, but I was talking about _shell_script_ way of > > > > doing > > > > that... > > > > Wow, I think I'm going to open a zoo for root-checking methods:) > >