LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Help Me out (https://www.linuxquestions.org/questions/linux-security-4/help-me-out-542442/)

amartya_in 04-01-2007 03:21 PM

Help Me out
 
Hi everybody, i need a help from u guy(s).
;;;;;;
1)created a user account by '/usr/sbin/useradd amartya'
2)Not Given any password for it.
3)After that i delete the account by '/usr/sbin/userdel amartya'
4)Simultaneously deleted the home directory,deleted the column in /etc/passwd, /etc/shadow, /etc/groups,/etc/gshadow
5)Problem comes after that.
When i am going to create the same user 'amartya' through the same above procedure & logging in that user (as su - amartya) &going to give password , then it is asking for current password.
But i am not having any password for it.
How can i over come from this problem
Please help me out ....

phantom_cyph 04-01-2007 03:27 PM

Not enough info-you don't even list what distro you have/use.

win32sux 04-01-2007 06:03 PM

well, passwd doesn't care about passwords when it's run as root, so doing this as root should work-around the problem:
Code:

passwd amartya


All times are GMT -5. The time now is 05:48 PM.