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
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
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:)
> >
3 matches
Mail list logo