LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 09-29-2004, 10:37 PM   #1
want2learn
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
how can you assign a password to a new user


I have created a new user from root, but how can I add a passwd for this user. I understand passwd will change a password once the user is logged in but I can't login with new user beacuse there is no password.

From reading it appears /etc/passwd holds passwords but how do I edit. Ia m using RedHat 6 and I am a newbe to the Linux World.
 
Old 09-29-2004, 10:44 PM   #2
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
login to command prompt as a root
and type

#passwd <newusername>

Changing password for user <newusername>
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
 
Old 09-30-2004, 07:50 AM   #3
m00t00
Member
 
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

Rep: Reputation: 30
Real Men edit /etc/shadow =P
(just kidding, do it his way)
 
  


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
Can't assign password to user corbis_demon Linux - General 2 02-22-2005 07:46 AM
How to assign a user to the particular partition ? sachinh Red Hat 3 07-26-2004 01:28 AM
how to assign password for a user in shell script mtest Programming 10 10-29-2003 06:52 AM
Assign Privs to specific user sikandar Linux - Software 13 08-31-2003 02:12 AM
How to assign directory access to a user linuxfans Linux - General 7 04-16-2003 12:06 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration