linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Harrison <matth@3d-computers.co.uk>
To: David Tice <dtice@wheatonma.edu>
Cc: linux-admin@vger.kernel.org
Subject: Re: Script to edit /etc/aliases file
Date: Wed, 22 Oct 2003 16:08:26 +0100	[thread overview]
Message-ID: <20031022150826.GB6951@3d-computers.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0310221048300.3847-100000@acunix.wheatonma.edu>

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

On Wed, Oct 22, 2003 at 10:55:25AM -0400, David Tice wrote:
> We add new users through a script that  sets up home directories on 
> different machines. If they are a student they on one machine if they are 
> faculty they are on different and so on. Our mail comes into one machine 
> and then sent to where their home directory lives. ( I did not set it up 
> this way but I have to deal with it)  I need to set up aliases for everyone
>  who is new and I am doing it by hand.
> Does anyone have a script that I can use?

Hi David,
  A little while ago, I wrote some perl scripts that take a text file
with usernames like so:

<user file>
user1
user2
user3
</user file>

then creates the unix account, sets a default password, sets up the
sendmail virtusertable, and a few other things. You should be able to
use it to create the aliases file instead of the virtusertable without
much trouble.

I will send it over when I get home (I'm at work now), in a couple of
hours.

HTH

-- 
Mat Harrison			| email: matth@3d-computers.co.uk
3d Computer Systems Ltd.	| tel: ++441249 460 766
11 New Road			| fax: ++441249 460 583 
Chippenham			| gpgid: 0x9FE38627
Wiltshire
SN13 9RW
England

[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

  reply	other threads:[~2003-10-22 15:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22 14:55 Script to edit /etc/aliases file David Tice
2003-10-22 15:08 ` Matthew Harrison [this message]
2003-10-23  6:26   ` Horia Chirculescu
     [not found] <Pine.LNX.4.44.0310221048300.3847-100000@acunix.wheatonma.e du>
2003-10-22 15:10 ` Scott Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031022150826.GB6951@3d-computers.co.uk \
    --to=matth@3d-computers.co.uk \
    --cc=dtice@wheatonma.edu \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).