LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-28-2007, 12:45 PM   #1
frankthetank250
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Question Creating new users in linux without using addmod or user add


Hi, I'm pretty new to linux and trying to figure out some things to help a friend that is taking a class.

What we're trying to do is write bash script to create a user, but can't use adduser or useradd or any other standard commands for adding a user in a single step. We've have been looking around but just haven't been able to find a way to do this.

Another thing that we're trying to do is write a script to create 100 users with names user001 through user100. With doing this we can use adduser or useradd or any other available programs to create a user in a single step, also make up the passwords, but they can all be the same. A way we can do this is create a script which creates a script to create the users. We are also having some trouble trying to do this.

The last thing that we are trying to do is write a script to create 100 users in the form of F######L where F is the first initial, ###### are the last 6 digits of an id or something like that, and L is the last initial. All of this stuff can just be random. The data will come from a file of the form lastname,firstname,IDnumber,password. We can use any of the available programs which create a user in a single step. We have to use the passwords given in the file for the users. We can also create a script which creates a script to create the users. We've been trying to do this but having problems.

Those are all of the things that we are trying to do. If anyone could help at all that would be greatly appreciated.

Thanks so much,
-John
 
Old 10-28-2007, 09:02 PM   #2
jessica_lilly
Member
 
Registered: Oct 2007
Posts: 133

Rep: Reputation: Disabled
you can add users using shell

1. adduser <username>
2. chgrp <username> ~
~ = for root premmisions
3. passwd <username>

follow them
 
  


Reply


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
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
Creating new users in linux without using addmod or user add frankthetank250 Linux - Newbie 5 10-29-2007 02:24 AM
Grant a user root privileges to add and delete users Maranza Linux - Security 6 11-02-2006 10:10 AM
Creating Users in Linux with specific rights: Issue?? rajnair0278 Linux - Software 1 07-10-2006 07:24 AM
Creating multiple users in Kmail with a single KDE user jonole Linux - Software 3 10-03-2004 12:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 AM.

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