Linux执行usermod时提示user xxx is currently logged in问题

logged in 并不是指用户已经登录,而是用户启用相关一些进程。

chmod 是根据lsof判断用户是否已经logged in的。通过lsof找出“正在登陆”的用户,kill掉相关进程就可以了。

$ lsof | grep mongo

Linux执行usermod时提示user xxx is currently logged in问题_第1张图片

你可能感兴趣的:(Linux执行usermod时提示user xxx is currently logged in问题)