Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Son of BASH!
Message
Information générale
Forum:
Linux
Catégorie:
Autre
Titre:
Divers
Thread ID:
00451468
Message ID:
00452185
Vues:
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? 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
Fil
Voir

Click here to load this message in the networking platform