Quote:
Originally Posted by schneidz
something like this mite work:
Code:
for user in `cat users.lst`
do
sudo useradd -D $user
done
|
Not -D
That shows/sets defaults.
Speaking of which, the first thing I would do is to set the default of newuser to create the user account home directory without having to have that in the command parameters every time.
That would set the default behavior of newuser to create the new users' home directories without specifying that in each invocation of newuser.
Next, since we don't know the Linux distribution there is no reason to think that the original poster needs to use sudo. Evidently the original poster is able to create new users so he/she already knows about that or, more likely, is using the root account. Since this is in a business it is likely that they are using Red Hat or some more business oriented distribution where use of the root account is expected.
The original poster should tell us the Linux distribution asap since that will affect the details of the solution.