<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi List,
<br>
<br>
I created a user by the name test, and after doing with my testing was
going to delete the user using the following command, userdel and also
added '-f' for cleaning out the home without leaving any traces of
'test'. But the command says :
<br>
<br>
[root@xbox ~]# userdel -f test
<br>
userdel: user test is currently logged in
<br>
<br>
Then i noticed that a tab in terminal was open with the user logged in.
Closed the TAB and again tried to remove the user. And to irony the
user was already gone as now the command said :.
<br>
<br>
[root@xbox ~]# userdel -f test
<br>
userdel: user 'test' does not exist
<br>
<br>
Tried listing the files and all were there intact.
<br>
<br>
[root@xbox ~]# ll <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>home/test<span
 class="moz-txt-tag">/</span></i>
<br>
.bash_history&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .bash_profile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .dbus/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
firefox-3.6.4.tar.bz2&nbsp; .gconfd/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .gnome2_private/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
.pulse-cookie
<br>
.bash_logout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .bashrc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; firefox/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
.gconf/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .gnome2/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .mozilla/
<br>
[root@xbox ~]#
<br>
<br>
I'm totally lost that how is parameter working fully against what man
says about it, pert manual
<br>
<br>
<br>
-f, --force
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This option forces the removal of the user account, even if
the user is still logged in. It also forces userdel to remove the
user&acute;s home directory and mail spool, even if another user uses the
same home directory or if the mail spool is not owned by the specified
user. If USERGROUPS_ENAB is defined to yes in /etc/login.defs and if a
group exists with the same name as the deleted user, then this group
will be removed, even if it is still the primary group of another user.
<br>
<br>
Seems that there is some issue with the command parameter, what do you
say ? is there some issue or Am i wrong somewhere.
<br>
<pre class="moz-signature" cols="72">-- 
Saurabh Sharma
Linux user number: 490644
<a class="moz-txt-link-freetext" href="http://sawrub-blog.blogspot.com/">http://sawrub-blog.blogspot.com/</a>
Open your doors.......It's time to look beyond Windows</pre>
</body>
</html>