Results 1 to 3 of 3

Thread: a script to automate the addition of users to linux server

  1. #1

    a script to automate the addition of users to linux server

    I am migrating from windows NT and have exported users to an csv file which I want to export to my linux PDC. Any one with that solution. Looking for a script to do this.

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re: a script to automate the addition of users to linux serv

    Dear Emmanuel,
    Hello,

    Quote Originally Posted by Emmanuel
    I am migrating from windows NT and have exported users to an csv file which I want to export to my linux PDC. Any one with that solution. Looking for a script to do this.
    Can you please post here you CSV file so i will figure it out and try to make script for you

    Best Regards.
    Frrkh hmd

  3. #3
    is the csv file a one column list of usernames? if so you probably don't even need a script to do it:

    Code:
    for user in `cat testfile.txt`; do /usr/sbin/useradd $user; done
    or in a script:
    Code:
    #!/bin/bash
    for user in `cat testfile.txt`; do /usr/sbin/useradd $user; done

Similar Threads

  1. Large Storage Linux File Server for Windows 7 Users (3.5TB)
    By Sheepdisease in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-05-2009, 03:30 PM
  2. vertual users in Mail server
    By lasanthaindika in forum Redhat / Fedora
    Replies: 0
    Last Post: 09-22-2007, 06:27 AM
  3. Automate backups on Linux
    By trickster in forum General Chat
    Replies: 9
    Last Post: 11-26-2004, 08:15 PM
  4. Allow users to shutdown Linux Server
    By infinite_root in forum Linux - General Topics
    Replies: 2
    Last Post: 11-21-2003, 03:44 AM
  5. Web script for server status
    By Schotty in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 05-19-2003, 06:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •