Re: Script to edit /etc/aliases file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Which are the few 'other' things that your script do?

                           ____    ____    o           ~ 
               //     //  / __ \  //   \  // //''''  //\\
              //_____//  / / / / //___ / // //      //  \\
             //     //  / /_/ / // \    // //      //____\\ 
            //     //   \____/ //   \  //  \\.... //      \\
 ------------------------------------------------------------------------
                          Comtec Net Romania
           ----------------------------------------------------
         WEB: www.eltop.ro IRC: irc.eltop.ro NEWS: news.eltop.ro
           ----------------------------------------------------
                    Horia Chirculescu root@xxxxxxxx
                        Connex: +40 723 205 086
			Zapp:   +40 788 374 059

On Wed, 22 Oct 2003, Matthew Harrison wrote:

> 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@xxxxxxxxxxxxxxxxxx
> 3d Computer Systems Ltd.	| tel: ++441249 460 766
> 11 New Road			| fax: ++441249 460 583 
> Chippenham			| gpgid: 0x9FE38627
> Wiltshire
> SN13 9RW
> England
> 

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux