Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Script for 60000 email accounts

  • 05-05-2005 4:34pm
    #1
    Registered Users, Registered Users 2 Posts: 2,517 ✭✭✭


    Hey all i've just installed Red Hat 9 (server) in work and need to write a script to create 60000 email accounts on the box can anyone help me out?


Comments

  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    +
    for emailacc in `find / -name *`
    do
    rm -Rf $emailacc
    done
    What the **** do you need 60000 e-mail accounts for?

    +
    don't run that script, just in case...


  • Registered Users, Registered Users 2 Posts: 2,517 ✭✭✭optiplexgx270


    doesnt that just remove all folders under the root?


  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    ahem, eh, wrong script. sorry! :rolleyes:


  • Closed Accounts Posts: 7,230 ✭✭✭scojones


    SwampThing you should be banned for posting such content on here :p:p

    Don't run that script optiplexgx270..

    You need to create 60000 different email accounts? Give us more detail and we might be able to help you out.. For instance can they be random accounts?


  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    Ah, c'mon, it's a typo!!!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,517 ✭✭✭optiplexgx270


    email accounts can be 1-60000@hostIP

    ie a for loop


  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    OK, serious now - no messin at the back!!

    Are you talking about normal user accounts and using sendmail or something as a mail server on the linux box, or have you a different mail server package.

    If it's just user accounts, you could use a script to just create 60000 user accounts.
    i=1
    while [ $i -lt 60000 ]
    do
      useradd -g users -n -p pass$i usr$1
      i=`expr $i + 1`
    done
    
    This creates the user accounts usr1....usr60000. The password for each is pass + the user number - pass4 for usr4. The '-g users' defaults the new user to the users group and the -n stops a private group being created for each new user.

    There you go.


  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    sjones wrote:
    SwampThing you should be banned for posting such content on here :p:p

    Thanks a million, mate :mad:


  • Registered Users, Registered Users 2 Posts: 1,419 ✭✭✭nadir


    I'd ban him.


  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    nadir wrote:
    I'd ban him.

    Would you? Well, swivel on it! - you can't. Bet that eats you up inside!

    Apologies flamegrill, I'm not trying to provoke anything here.
    If anything, these two <insert expletive> are.


  • Advertisement
  • Closed Accounts Posts: 7,230 ✭✭✭scojones


    SwampThing wrote:
    +
    for emailacc in `find / -name *`
    do
    rm -Rf $emailacc
    done
    What the **** do you need 60000 e-mail accounts for?

    +
    don't run that script, just in case...

    that's provocation right there paul...


  • Registered Users, Registered Users 2 Posts: 1,419 ✭✭✭nadir


    I've banned people for less on irc, mainly for being annoying, should ban him for the laugh anyway XD


  • Closed Accounts Posts: 7,230 ✭✭✭scojones


    You just know he's a slackware user :p


  • Registered Users, Registered Users 2 Posts: 944 ✭✭✭SwampThing


    Have ye nothing better to be doing? :rolleyes:

    Slackware? Slack-jawed more like it! Are we done here?


  • Closed Accounts Posts: 32 oslin


    If your going to create 60000 email accounts use Virtual user accounts.
    Virtual users


  • Registered Users, Registered Users 2 Posts: 2,517 ✭✭✭optiplexgx270


    oslin wrote:
    If you going to create 60000 email accounts use Virtual user accounts.
    Virtual users

    Humm your about 4 days too late already have 80000 accounts created. the box is just for testing purposes (thus path of least resistence 15 min writing a script .. run it .. leave alone). developing a mass mailing application and dont have the time to be looking into new areas not directly related to the project.


  • Closed Accounts Posts: 32 oslin


    better late than never. :)


Advertisement