UID, name or home directory is changed.
+2009-05-18 Nicolas François <nicolas.francois@centraliens.net>
+
+ * NEWS, src/usermod.c: Check if the user is busy when the user's
+ UID, name or home directory is changed.
+
2009-05-18 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c, libmisc/user_busy.c, libmisc/Makefile.am,
the user is running some processes.
* If not on Linux, continue to search for an utmp record, but make sure
the process recorded in the utmp entry is still running.
+- usermod
+ * Check if the user is busy when the user's UID, name or home directory
+ is changed.
shadow-4.1.3.1 -> shadow-4.1.4 2009-05-10
process_flags (argc, argv);
+ /*
+ * The home directory, the username and the user's UID should not
+ * be changed while the user is logged in.
+ */
+ if ( (uflg || lflg || dflg)
+ && (user_busy (user_name, user_id) != 0)) {
+ fprintf (stderr,
+ _("%s: user %s is currently logged in\n"),
+ Prog, user_name);
+ exit (E_USER_BUSY);
+ }
+
#ifdef ACCT_TOOLS_SETUID
#ifdef USE_PAM
{