Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-07-2018, 02:25 PM   #1
Matt Talbot
LQ Newbie
Registered: Mar 2018
Location: Denton, tx
Posts: 1

Rep: Reputation: Disabled
Linux Ubuntu: add multiple users and then create passwords: need possible scripts for the virtual editor

I am in a beginner linux college class and I have a long list of things to do in command mode. I am stuck on a section of it that deals with adding multiple users and then creating passwords and then adding parameters to every user and their passwords. The specific question I am on is "Create 30 users" and the next one is "assign each user a password" and I am stuck. Please help. I guess I need a script or scripts to enter in.
Old 03-07-2018, 02:53 PM   #2
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,709

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Welcome to LQ. We won't do your homework for you, but we can help you get started. Here are a couple of questions to guide your efforts:
  1. Do you know how to do what you need to do for a single user from the command line?
  2. Do you know how to script a loop?
Old 03-08-2018, 11:21 PM   #3
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
You use the user commands. useradd, usermod.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create script to add users & passwords MarkMelling Linux - Newbie 7 10-18-2015 07:53 PM
Best Practice on Managing Passwords for Multiple Users on Linux Systems? JockVSJock Linux - Newbie 1 10-21-2014 08:28 AM
Want to create 25 Users and forcing the users to change passwords James0806 Linux - Newbie 3 10-19-2014 11:56 AM
Sync Multiple Linux Servers Users, groups and passwords, shadow wamukuk Linux - General 1 11-26-2013 03:06 PM
Sync Multiple Linux Servers Users, groups and passwords waddy Linux - Server 6 02-29-2008 06:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration