absolute BEGINEERS question

Please bear with me.....this is my first time

I'v just installed Red Hat 9 on my system.

I did it in custom mode coz I wanted all development tools(perl modules to php and everything in between)

The installation went off fine. When I logged in first time, I created a default user as 'user'/'manav'/'manav2' (I tried \3 installations, each time using one of these users, but evrytime, the following problems occur)

Now the problems
1) As root, I did add few users thru
useradd -d /home/manav -n -p mypassword -g 700 manav

the gid 700 I had created before(-n for not creating a new group everytime)

When I log out of root and try to login as manav,it dioesnt accept me in, saying the password is wrong. I am only able to log in as root. I am not even able to login as 'users'/'manav'/'manav2' (the login which I created first tim at bootup.

few points
- /etc/passwd and /etc/group show correct entries for gid etc.
- I even tried removing the enable-md5 for password and the /etc/passwd shows the correct
- i tried to su - as manav from root. It does properly. however, when i do a passwd then, it asks for the passwd and doesnt accept mypassword.
- In gnome(as root), through 'System-setting" -> "users and groups", I tried to change the password for user manav. when I do an ok and reselect properties for manav, it shows 5 asterisks.
- /etc/nologin doesnt exist

It seems to me that maybe somehow my system is configured to login only as root. I've tried the installaiton 3 times and same thing happens.

Please help,

LVL 16
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

manav_mathurAuthor Commented:
>- I even tried removing the enable-md5 for password and the /etc/passwd shows the correct

shoud be
- I even tried removing the enable-md5 for password and the /etc/passwd shows the correct password 'mypassword'

Have you tried to login as root and change the passwd for the user?" passwd manav". If that doesnt work you can try deleting manavs password - login as root and run passwd -d manav.
Your problem is that you included "-p mypassword" in the user add command. The use of that option required that "mypassword" be the encrypted representation of the password, not the actual password.

The fix is easy. First run authconfig and re-enable MD5 password encryption. Then execute (as root) 'passwd manav', enter the password twice when prompted. You'll then be able to log in a manav
manav_mathurAuthor Commented:

thanx for that. I even see it now in the man document. And it says using the crypt function for that.

I am thinking

1) useradd -d /home/manav -n -p crypt(mypassword,ae) -g 700 manav
could do it??

2)in Gnome, why does the password box in 'Users and setting' -> 'Properties' for a particular user always
display 5 asterisk??

does passwd -d manav create a new account with /etc/login.defs standard definitions.

Anyways, I think I'll divide the points 75-70(jlevie:owensleftfoot), thats ok??

Thnx again guys,

Passwd -d deletes a users password - it enables them to login without any password at all.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.