Find the answer to your Linux question:
Results 1 to 2 of 2
anyone have some algorithm or any insight on adding user1/user2/usern to machin1/machin2/machinN etc basically need to ssh to each box as root. useradd etc. visudo, add user to group. logout ...
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    1

    add multiple users to multiple machines with visudo

    anyone have some algorithm or any insight on adding user1/user2/usern to machin1/machin2/machinN etc

    basically need to ssh to each box as root.
    useradd etc. visudo,
    add user to group.
    logout as root.
    test login as that user.
    test sudo access.

    if anyone has any comments ...

  2. #2
    Linux Newbie
    Join Date
    Jul 2008
    Posts
    181
    Since visudo is interactive, this is going to be very difficult. If you were to edit sudoers with sed or a similar tool, the job would be much easier.

Posting Permissions

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