Re: Create a users and passwords by a script
- From: houghi <houghi@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Dec 2007 22:44:47 +0100
Miguel Lopes wrote:
Hello,
I have Suse 10.2 and it is working fine with courier and posfix.
I like to create users for my email server using some type of script that
why I just have to update a file with username and password and run the
script and it can create 10 , 20 users.
Has anyone done somthing like and can help me?
useradd is the program you will be using in the script to actualy use
the program, so read the manpage for that. After that it should be realy
easy to figure out by either google or some simple scripting knowledge.
#!/bin/bash
for USER in `cate file_with_names`
do
adduser -parmeters
done
Or something similar.
houghi
--
Microsoft says, "Where do you want to go today?"
Apple says, "Where do you want to go tomorrow?"
FOSS says, "Are you coming, or what?"
.
- References:
- Create a users and passwords by a script
- From: Miguel Lopes
- Create a users and passwords by a script
- Prev by Date: Re: file installation question
- Next by Date: Re: Suse 10.3 talks to websites while you're asleep?
- Previous by thread: Create a users and passwords by a script
- Index(es):
Relevant Pages
|