programming question, for samba.

James Hughes
Thu, 09 Oct 1997 17:45:56 -0000

Luke Kenneth Casson Leighton wrote:
>
> help, help.  does anyone know of a generic way to convert string username
> into a uid (user id)?
>

How about...

	grep username /etc/passwd|cut -f 3 -d :


-James