Hi everyone,

This is for those of you who are not awkward with awk and company.
Debian's adduser is designed such that it will run chfn as part of the
adduser process and then run /usr/local/sbin/adduser.local if it exists,
passing the following as parameters: username uid gid home-directory.

I need to create an adduser.local that will be able to somehow extract the
user's full name from information previously encoded via the
adduser-invoked chfn, but can't figure out a recipe for this. I'm using
shadowed passwd (not ldap or sql).

Great ideas welcome. ;>

 --> Jijo

PS- tried 

finger $1 | grep Name: | awk '{printf("%s",$4)}'

but this can't handle spaces in the fullname which happens all the time. I
cannot brute force a two-word name limitation, either.

--
Federico Sevilla III  :: [EMAIL PROTECTED]
Network Administrator :: The Leather Collection, Inc.


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to