Re: [ilugd] lock corrupt passwd file

2007-08-17 Thread Linux Lingam
hi rakesh,

  then as root, i just ran pwck, here's what i got:
  invalid shadow password file entry
  delete line 'root'?

 As you have changed password so this line is invalid.
 Now run pwconv to make shadow file. It will append root entry at the
 end of file and automatically delete that line.

 You can also delete it yourself.

 Note: pwconv is not usually in $PATH. You can use absolute path or
 ..:-) You will find it yourself. ;-)

thanks for your prompt response.
actually pwconv did run in $PATH. nevertheless, i ran it from
/usr/sbin/pwconv just to be double-sure. all this as root.
then i ran pwck as root again.
i still get the same errors:

invalid shadow password file entry
delete line 'root'?

should i go ahead and press enter to delete this line?
would it cock-up the system again?
what do i do with the 'invalid shadow password file entry' report?

tia

:-)
niyam

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] lock corrupt passwd file

2007-08-17 Thread Rakesh Pandit
Hello,

yes, look at the last line in shadow file there must be a root entry.
Remove this 'root' line. It was just to remove your earlier
password. Go ahead!


-- 
Regards
Rakesh

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] lock corrupt passwd file

2007-08-16 Thread Rakesh Pandit
Hello niyam,

 how do i fix this problem?

This thread will help
http://www.linuxquestions.org/questions/showthread.php?t=146787

If nothing works then using a rescue remove x  in line

root:x:0:0:root:/root:/bin/bash

from file /etc/passwd
and if shadow file exist (in case it is not empty or corrupted) create
it and the line containing root password should be

root

Next time on booting set your password using by logging as normal user
and doing a 'su'


-- 
Regards
Rakesh

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] lock corrupt passwd file

2007-08-16 Thread Rakesh Pandit
Hello,

 from file /etc/passwd
 and if shadow file exist (in case it is not empty or corrupted) create
 it and the line containing root password should be

My lines are confusing, typed in hurry :-(
You can create shadow file using pwconv if it does not exist.
and if it exists remove the line having root information with 'root'

-- 
Regards
Rakesh

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] lock corrupt passwd file

2007-08-16 Thread Gora Mohanty
On Fri, 2007-08-17 at 03:32 +0530, Linux Lingam wrote:
 a prolonged powerfailure shutdown my computer running ubuntu fiesty in
 the middle of a task.
 on reboot, everything seemed to work fine,
 but my root password is no longer working.

What do you mean by root password no longer
working. What did you try, and what happens.

 a quick 'pwck' command results in
 pwck: cannot lock file /etc/passwd
[...]

You need super-user privileges to run pwck.
Thus,
  sudo pwck

Regards,
Gora


___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/