tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Darryl Cook <dlc () cs ! appstate ! edu>
To: tru64-unix-managers
Subject: SUMMARY: useradd problem
Date: Wed, 30 Jan 2002 16:03:22 +0000	[thread overview]
Message-ID: <102653723422122.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks to Dr. Blinn and an unknown "systems admin"  for pointing me in the
right direction.   The problem is with the GECOS field that finger uses.  It
uses the section of the passwd file which contains name, office, phone # etc
which are seperated by commas.  I looked in the passwd file and sure enough
there are commas between the first and last name.  My first thought was that
useradd is doing it but that wasnt the case.   The rosters that I download
with user names and ids to build accounts with have a comma between the
names.  So I will just have to write a sed script to take the commas out
before running them through useradd.

Darryl Cook wrote:

> Hi,
>
> I running Tru64 5.1, enhanced security on an ES40.   Each semester I
> create about 250 accounts for students taking computer science courses.
> I decided to automate the process instead of creating each account by
> hand.  Everything works great except the following nuisance.  When I
> create a user by hand using dxaccounts the name of course goes into the
> name field.  It looks like this:
> Full Name :   Darryl   Cook
>
> If i do a finger on this account it shows
>
> In Real Life:  Darryl Cook
> ***********
> Now if I create the same account using useradd  it looks the same in
> dxaccounts with
> Full Name:  Darryl Cook
> but when I do a finger on the account I get:
>
> In Real Life:   Darryl
> Office:  Cook
> **************
>
> what could be causing finger to put everything up to the first space in
> the name field and the rest in the Office field?    I have tried putting
> the name in quotes when I use useradd but it doesnt change
> anything........any ideas?
>
> thanks,
> darryl cook

                 reply	other threads:[~2002-01-30 16:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox