1 diff --git a/src/daemon.c b/src/daemon.c
2 index c8b6320..2b74949 100644
5 @@ -1102,7 +1102,7 @@ daemon_create_user_authorized_cb (Daemon *daemon,
7 sys_log (context, "create user '%s'", cd->user_name);
9 - argv[0] = "/usr/sbin/useradd";
10 + argv[0] = "@shadow@/bin/useradd";
13 argv[3] = cd->real_name;
14 @@ -1335,7 +1335,7 @@ daemon_delete_user_authorized_cb (Daemon *daemon,
16 free (resolved_homedir);
18 - argv[0] = "/usr/sbin/userdel";
19 + argv[0] = "@shadow@/bin/userdel";
20 if (ud->remove_files) {
23 diff --git a/src/user.c b/src/user.c
24 index 189b2c5..5358c02 100644
27 @@ -1145,7 +1145,7 @@ user_change_real_name_authorized_cb (Daemon *daemon,
28 new_gecos = g_strdup (name);
31 - argv[0] = "/usr/sbin/usermod";
32 + argv[0] = "@shadow@/bin/usermod";
36 @@ -1218,7 +1218,7 @@ user_change_user_name_authorized_cb (Daemon *daemon,
37 accounts_user_get_uid (ACCOUNTS_USER (user)),
40 - argv[0] = "/usr/sbin/usermod";
41 + argv[0] = "@shadow@/bin/usermod";
45 @@ -1627,7 +1627,7 @@ user_change_home_dir_authorized_cb (Daemon *daemon,
46 accounts_user_get_uid (ACCOUNTS_USER (user)),
49 - argv[0] = "/usr/sbin/usermod";
50 + argv[0] = "@shadow@/bin/usermod";
54 @@ -1683,7 +1683,7 @@ user_change_shell_authorized_cb (Daemon *daemon,
55 accounts_user_get_uid (ACCOUNTS_USER (user)),
58 - argv[0] = "/usr/sbin/usermod";
59 + argv[0] = "@shadow@/bin/usermod";
63 @@ -1824,7 +1824,7 @@ user_change_icon_file_authorized_cb (Daemon *daemon,
67 - argv[0] = "/bin/cat";
68 + argv[0] = "@coreutils@/bin/cat";
72 @@ -1904,7 +1904,7 @@ user_change_locked_authorized_cb (Daemon *daemon,
73 locked ? "locking" : "unlocking",
74 accounts_user_get_user_name (ACCOUNTS_USER (user)),
75 accounts_user_get_uid (ACCOUNTS_USER (user)));
76 - argv[0] = "/usr/sbin/usermod";
77 + argv[0] = "@shadow@/bin/usermod";
78 argv[1] = locked ? "-L" : "-U";
80 argv[3] = accounts_user_get_user_name (ACCOUNTS_USER (user));
81 @@ -2026,7 +2026,7 @@ user_change_account_type_authorized_cb (Daemon *daemon,
85 - argv[0] = "/usr/sbin/usermod";
86 + argv[0] = "@shadow@/bin/usermod";
90 @@ -2093,7 +2093,7 @@ user_change_password_mode_authorized_cb (Daemon *daemon,
91 if (mode == PASSWORD_MODE_SET_AT_LOGIN ||
92 mode == PASSWORD_MODE_NONE) {
94 - argv[0] = "/usr/bin/passwd";
95 + argv[0] = "/run/wrappers/bin/passwd";
98 argv[3] = accounts_user_get_user_name (ACCOUNTS_USER (user));
99 @@ -2105,7 +2105,7 @@ user_change_password_mode_authorized_cb (Daemon *daemon,
102 if (mode == PASSWORD_MODE_SET_AT_LOGIN) {
103 - argv[0] = "/usr/bin/chage";
104 + argv[0] = "@shadow@/bin/chage";
108 @@ -2126,7 +2126,7 @@ user_change_password_mode_authorized_cb (Daemon *daemon,
109 accounts_user_set_locked (ACCOUNTS_USER (user), FALSE);
111 else if (accounts_user_get_locked (ACCOUNTS_USER (user))) {
112 - argv[0] = "/usr/sbin/usermod";
113 + argv[0] = "@shadow@/bin/usermod";
116 argv[3] = accounts_user_get_user_name (ACCOUNTS_USER (user));
117 @@ -2203,7 +2203,7 @@ user_change_password_authorized_cb (Daemon *daemon,
119 g_object_freeze_notify (G_OBJECT (user));
121 - argv[0] = "/usr/sbin/usermod";
122 + argv[0] = "@shadow@/bin/usermod";
124 argv[2] = strings[0];