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:
00452278
Views:
22
>Jerry,
>
>>My bash script to pick names and encrypted passwords out of a file works.
>>The part of the script which is supposed to use useradd to add them to
>>the system doesn't work.
>
>Well, I am glad the script works at least partially!
>
>>Here's the problem: my user 'names' are 5 digit numbers. You can add them
>>with Kmuser, as I said before, but I have not been able to find a way
>>to make useradd work.
>
>Well, does Kmuser have a command-line portion to it that you can use to add the names?

Nope.

>Other than that, creating users manually is not really to tough, is it?

200 users! I'd rather use a script!

>Create the user files from the skeleton area, add user to the passwd file, and then set all appropriate security options... I would do a check on Deja News, as I am sure someone would have a manual user-adding script that you could at least start with. Other than that, you could try to find the source code for useradd and see what it all does...

The script I'm using is a mod of one I found on the web... There's not too
much out there. Things would work great if I were NOT using digital user names.


That's a good idea!

>
>I remember a while back using a command called adduser. Maybe that is what has turned inti useradd, but I remember when I went looking that programs and scripts to add users seemed plentiful and fairly straightforward. Good luck!

"useradd" - Opps! Typo....

>
>JoeK
Nebraska Dept of Revenue
Previous
Reply
Map
View

Click here to load this message in the networking platform