diff options
author | Cody Maloney | 2013-02-07 07:22:20 +0100 |
---|---|---|
committer | Karel Zak | 2013-02-13 09:37:15 +0100 |
commit | 6adb1ef279537875495d10f7c74f35101dd335fd (patch) | |
tree | 0c3680cdc91be62969d805c03591c0dd5ec9ffb3 /login-utils/libuser.h | |
parent | chsh-chfn: Move pam auth to its own function, factoring out common code (diff) | |
download | kernel-qcow2-util-linux-6adb1ef279537875495d10f7c74f35101dd335fd.tar.gz kernel-qcow2-util-linux-6adb1ef279537875495d10f7c74f35101dd335fd.tar.xz kernel-qcow2-util-linux-6adb1ef279537875495d10f7c74f35101dd335fd.zip |
chsh: Add libuser support
This is based directly on lchsh which is a part of libuser. libuser.{c,h}
exist because exactly the same code is needed for both chsh and chfn.
[kzak@redhat.com: cleanup err() usage]
Signed-off-by: Cody Maloney <cmaloney@theoreticalchaos.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/libuser.h')
-rw-r--r-- | login-utils/libuser.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/login-utils/libuser.h b/login-utils/libuser.h new file mode 100644 index 000000000..7454b997e --- /dev/null +++ b/login-utils/libuser.h @@ -0,0 +1,14 @@ +/* + * libuser.h -- Utilize libuser to set a user attribute + * (c) 2012 by Cody Maloney <cmaloney@theoreticalchaos.com> + * + * this program is free software. you can redistribute it and + * modify it under the terms of the gnu general public license. + * there is no warranty. + * + */ + +#include <sys/types.h> + +extern int set_value_libuser(const char *service_name, const char *username, + uid_t uid, const char *attr, const char *val); |