In front of a short time to play the Samba service, the above all the services are done, the home directory is not accessible, delete their own smb.conf files, to other services on the synchronization of the file with Rsync, start the service home directory or can not visit, a row of the afternoon, and finally found
The home directory of the user in the/etc/passwd file has changed, so the home directory cannot be accessed.
When using Usermod–d Lee Lee, the error is:
Usermod:user Lee currently logged in
is to add an absolute path
Usermod–d/home/lee Lee still can't change the error.
Usermod:user Lee currently logged in
Anyway, this is the error, how to make it is this error, of course, can also directly modify the configuration file, but that is not fun to play, Linux play is the wrong, right.
After looking for a night's information, I finally solved the problem.
Solution:
Cat/dev/null >/var/run/utmp Empty this file
Restart the reboot and then execute the above command OK.
/var/run/utmp
Utmp is a file, in addition to the UTMP program you can not edit this file, delete his words, the current login information will be lost. It is like the system will be opened after the information of the members of the system quickly recorded, after a period of time it will no longer record, to confirm the system's user configuration is so ...
This file will be recreated every time the machine reboot up.
Author: cnblogs Linuxsuper Meng
Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/