programming question, for samba.

James Hughes jamesh at interpath.com
Thu Oct 9 17:45:56 GMT 1997


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


More information about the samba mailing list