Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Son of BASH!
Message
General information
Forum:
Linux
Category:
Other
Title:
Miscellaneous
Thread ID:
00451468
Message ID:
00453019
Views:
34
>>Well, does Kmuser have a command-line portion to it that you can use to add the names?
>
>Why not grab the source to Kmuser and see how it is setting up the usernames.
>
>I still think that if nothing else, you could just awk the passwd and shadow file and replace the temporary username with the numerical one.
>
>j

Well, it seems Kmuser has script capability only for setting up a Netscape browser on the new account. No way to mod it for what I want to do.
I looked at the source to useradd and it is WAY to complex for me to mess with. Turns out that it is also used during login. The source is heavy in indirect addressing for the multitude of both platforms and languages it supports. I could enter those 100 new accounts before I ever figured out what useradd was doing.

I looked at the source for Kmuser. It is *very* slick and well written. It uses qt widgets to add users, accounts, passwords, etc.... I can use it as a source for ideas to write a pgm to do what I want.

I don't know that much about awk or how the password and shadow file works.
But, AFAIK, changing the names in those two files will not automatically delete the old account directories and create the new ones, even if that changes the names of the accounts. That would put me in a worse mess.

That raises a question I wanted to ask: Are the /etc/password and /etc/shadow files the only places where account names and info are kept, or is there a database file someplace else?
JLK
Nebraska Dept of Revenue
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform