SUMMARY: useradd problem

From: Darryl Cook <dlc_at_cs.appstate.edu>
Date: Wed, 30 Jan 2002 11:03:22 -0500

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
Received on Wed Jan 30 2002 - 16:03:25 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT