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? Other than that, creating users manually is not really to tough, is it? 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...
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!
JoeK
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement