LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2011, 10:49 AM   #1
jone kim
Member
 
Registered: Apr 2010
Posts: 185

Rep: Reputation: 16
Question creating newusers and givin passwds in Ubuntu


I've created 10 new users for my machine. And I want to keep same login password for all of the users. Its very tedious job to enter the same password everytime while creating the new users. Is there any way to do this job?? Any quick way??
 
Old 02-19-2011, 12:03 PM   #2
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Umm.... never tried this but I think it should be possible by editing /etc/passwd and /etc/shadow.
Anyway this would involve approximately the same amount of time.
Another way is '#groupadd' where you can set up a password but the man page does not recommend this because passwords will show up in the 'ps'.
Hope this helps.
 
Old 02-19-2011, 12:24 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Here is a script to add users.
You can easily modify it to use the same password.
http://www.cyberciti.biz/tips/howto-...-add-user.html

Kind regards
 
Old 05-06-2011, 02:52 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
New users command

There is a command newusers. From its man page:
Quote:
DESCRIPTION
The newusers command reads a file of user name and clear-text password pairs and uses this information to update a group of existing users or to create new users. Each line is in the same format as the standard password file (see passwd(5)) with the following exceptions:
. . .
If you already have it, or can install it, it may be better than a script.
 
  


Reply

Tags
new+users, newusers



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
switch to a new modem and user/passwds(vxdl) gre3n Debian 0 01-23-2010 11:27 PM
How to provide root passwds in programs as strings skie_knite007 Programming 1 10-01-2005 09:54 AM
user passwds zaman Linux - Security 1 07-23-2003 12:08 PM
grub givin me problems subrandom General 3 03-06-2002 02:36 PM
not givin up yet eagle0669 Linux - Networking 1 08-03-2001 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:24 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