lxqt-admin-packaging/lxqt-admin-user/lxqt-admin-user-helper.default
Alf Gaida bdf997572e
Adding upstream version 0.11.1.
Signed-off-by: Alf Gaida <agaida@siduction.org>
2017-01-02 01:24:22 +01:00

14 lines
315 B
Bash
Executable File

#!/bin/sh
case "$1" in
# we only allow executing these commands
useradd|usermod|userdel|groupadd|groupmod|groupdel|passwd|gpasswd)
# TODO: platforms using different commands can add wrapper scripts here.
export LC_ALL=C
exec "$@"
;;
*)
echo "Command '$1' is not allowed!"
exit 1
;;
esac