Re: 'userdel' irony -- what do you say ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 31, 2010 at 12:12 AM, sawrub <sawrub@xxxxxxxxxxxxxxxxx> wrote:
>
> 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 :
>
> [root@xbox ~]# userdel -f test
> userdel: user test is currently logged in
>
> 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 :.
>
> [root@xbox ~]# userdel -f test
> userdel: user 'test' does not exist
>
> Tried listing the files and all were there intact.
>
> [root@xbox ~]# ll /home/test/
> .bash_history          .bash_profile          .dbus/
> firefox-3.6.4.tar.bz2  .gconfd/               .gnome2_private/
> .pulse-cookie
> .bash_logout           .bashrc                firefox/
> .gconf/                .gnome2/               .mozilla/
> [root@xbox ~]#
>
> I'm totally lost that how is parameter working fully against what man says
> about it, pert manual
>
> -f, --force
>            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´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.
>
> Seems that there is some issue with the command parameter, what do you say ?
> is there some issue or Am i wrong somewhere.

You didn't quote the last part of that section of the manpage: "Note:
This option is dangerous and may leave your system in an inconsistent
state."

If you want to remove a user's files and directories, make sure he/she
is logged off and run "userdel -r...".
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux