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


  Search this Thread
Old 09-29-2004, 11:37 PM   #1
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, 11:44 PM   #2
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, 08:50 AM   #3
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

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


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

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