From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653723422122.tru64-unix-managers.marc@archive.invalid> From: Darryl Cook Date: Wed, 30 Jan 2002 16:03:22 +0000 To: tru64-unix-managers Subject: SUMMARY: useradd problem X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653723422122 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