SAMBA digest 1451
rogerb at x.co.uk
Fri Oct 10 10:13:51 GMT 1997
> Luke Kenneth Casson Leighton wrote:
> > help, help. does anyone know of a generic way to convert string user=
> > into a uid (user id)?
> How about...
> grep username /etc/passwd|cut -f 3 -d :
If you have NIS, you'll also need to `ypcat passwd'. The only interface
that will work no matter how the user databases have been set up is
the C library routine getpwnam(). You can wrapper that up into your
Roger Binns rogerb at sco.com | The reasonable man adapts himself to the world;
Software Architect | the unreasonable one persists in trying to
Client Integration Division | to adapt the world to himself. Therefore all
SCO, Vision Park, Cambridge | progress depends on the unreasonable man - GBS
More information about the samba