<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">ls /etc/*.lock and you should find that there is a passwd.lock and or a gshadow.lock file. If so, have a look in them to get the PID of the process that created the lock file.<br>
</blockquote><div><br>I ran the following and got the following:<br><br>myfamily@myfamily-desktop:~$ ls /etc/*.lock<br>/etc/gshadow.lock<br>myfamily@myfamily-desktop:~$ <br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
cat /etc/gshadow.lock<br></blockquote><div><br>myfamily@myfamily-desktop:~$ sudo cat /etc/gshadow.lock <br>myfamily@myfamily-desktop:~$ <br><br>gshadow.lock file has no contents to be displayed!!<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Then find out if that PID is still in use (and if it's something that should have a lock on your shadow files)<br>
<br>
ps -e | grep pid_number (whatever the pid was in the lock file)<br></blockquote><div><br>I don't know what to do now? Don't know what these files are and doing? Simply tried to delete the user from Users and Groups but again not successfull!<br>
</div></div><br>