1. After creating a new user, switch to the new user: No directory, logging in with HOME=/Add user #sudo useradd -m -s /bin/bash -g group loginname -m Create a home directory (do not add this to manually add the directory, otherwise there will be No directory, Logging in with HOME=/) -s /bin/bash Use bash (default is /bin/sh Use default does not appear in front of the $ character login@ubuntu) -g group then use passwd to change the user password2. When deleting the user: userdel: user hbase is currently logged inor: userdel: user test Is currently used by process 2417 userdel: can not open /etc/subuid Many online solutions are as follows: $mv /var/run/utmp /var/run/utmp_ $touch > /var/run/utmp About: /var /run/utmp utmp is a file. You can't edit this file except utmp. If you delete it, the current login information will be lost.This file is recreated each time the machine is rebooted.However, I have tried it myself or not, and I still get the same prompt. Then delete the user violently:$userdel -r -f XXXX Tip: userdel: warning: can't remove /var/mail/Git: No such file or directory userdel: git home directory (/home/git) not found but it doesn't matter. The user has actually been successfully deleted.
The introduction of the information age has brought great convenience and benefits to our l
I have used the inux system to forget the root password. What should I do if I encounter suc
Command (command) information detailed This article address: http://blog.csdn.net/caroline
using direct-lvm storage method Recently played docker on Bluemix virtual machine, but found that t
Detailed sort order command under Linux
How to use the top command to monitor Linux system performance
How to add the growth engine to the VISTA sidebar
How to set auto save in Excel2003 Auto save setting method
Win10 Preview Edition 9901: Comprehensive Improvement of Modern Design Language
Resolve security has become the key to the success of the reason win7 (2)
WinXP disk format conversion high stroke
Windows7 sleep state is automatically wake-up fault resolution
Win10 system Hdmi to VGA has detailed solutions for images without sound