The prompt "userdel: user ** iscurrentlyloggedin" is displayed when ubuntuuserdel is used to delete a user.

Source: Internet
Author: User
The prompt "userdel: user ** iscurrentlyloggedinubuntuuserdel" is displayed when the user is deleted. the prompt "userdel: user ** iscurrentlyloggedin" is displayed. Description: A New git user just created this morning, when switching to ubuntu userdel to delete a user, the following message is displayed: userdel: user ** is currently logged in ubuntu userdel: user ** is currently logged in: I just created a new git User this morning and switched to the git User for a long time. finally, when I deleted the user account, I found a strange phenomenon: userdel: user newname is currently logged in many solutions on the Internet are as follows: mv/var/run/utmp/var/run /Utmp_touch>/var/run/utmp:/var/run/utmputmp is a file. except for the utmp program, you cannot edit this file. if you delete this file, the current login information will be lost. This file will be re-created every time the machine is reboot. However, I still cannot try it myself. if I still get the same prompt, delete the user brute force: userdel-r-f XXXX: userdel: warning: can't remove/var/mail/git: No such file or directoryuserdel: git home directory (/home/git) not found does not matter. The user has been deleted successfully.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.