Re: Create a users and passwords by a script



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?"
.



Relevant Pages

  • Re: Archiving Mail as files
    ... email server that receives mail and archive them as files. ... use a simple shell script to pipe the files into "mail -t" or so on the ... So I do not have to configure any DNS? ... I would propose to define a delivery agent and set this delivery agent with the SMART_HOST. ...
    (comp.mail.sendmail)
  • Re: Archiving Mail as files
    ... email server that receives mail and archive them as files. ... use a simple shell script to pipe the files into "mail -t" or so on the ... But how do I configure sendmail? ... So I do not have to configure any DNS? ...
    (comp.mail.sendmail)
  • Create a users and passwords by a script
    ... 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 ... script and it can create 10, ...
    (alt.os.linux.suse)
  • Re: skip printer folder name if empty
    ... When I tried to send the messages (via the script) to users, ... will understand and translate to "James.Bond@my_company." ... the Exchange email server doesn't know the translation from "bondj" ...
    (comp.unix.shell)
  • Re: ntbackup script and emailng
    ... What i need is to send email from script to notify me what status after script is finish. ... If the machine that is doing the backups does not have a email client, you will want to check out a VBScript the opens uses SMTP to send the message. ... But this requires that you have/know an open relay EMail server. ...
    (microsoft.public.scripting.vbscript)