usermod fails with "user xyz is currently logged in"
chmod: Beim Setzen der Zugriffsrechte für »/var/www/clients/client22/web32: Die Operation ist nicht erlaubt chown: der Eigentümer von »/var/www/clients/client22/web32 wird geändert: Die Operation ist nicht erlaubt usermod: user web32 is currently logged in failed to execute usermod -d /var/www/clients/client22/web32/. -s /usr/sbin/jk_chrootsh web32 failed to modify user web32 usermod: user web32 is currently logged in PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 294 chmod: Beim Setzen der Zugriffsrechte für »/var/www/clients/client22/web32: Die Operation ist nicht erlaubt chown: der Eigentümer von »/var/www/clients/client22/web32 wird geändert: Die Operation ist nicht erlaubt
the user is only "on" with php-fpm service - when I stop php-fpm before it will work... but thats not a good idea to stop all the time php-fpm on a update.
Why not change /etc/passwd directly (e.g. with sed)?