LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-01-2007, 03:21 PM   #1
amartya_in
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
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 ....
 
Old 04-01-2007, 03:27 PM   #2
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Not enough info-you don't even list what distro you have/use.
 
Old 04-01-2007, 06:03 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:07 PM.

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