summaryrefslogtreecommitdiffstats
path: root/login-utils/Makemodule.am
Commit message (Collapse)AuthorAgeFilesLines
* lslogins: add functionalityOndrej Oprala2014-05-151-13/+13
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* lslogins: move to login-utilsOndrej Oprala2014-05-151-0/+13
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* lib/timeutils: remove get_boot_time from libcommonKarel Zak2014-05-061-2/+2
| | | | | | | | clock_gettime() needs -lrt, so let's keep this stuff outside libcommon.la Reported-by: Ruediger Meier <sweet_f_a@gmx.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* nologin: add new commandKarel Zak2013-09-301-0/+7
| | | | | | | Currently it's maintained as distro specific (or people use impolite /bin/false way). Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix lastb symlinkKarel Zak2013-09-271-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* last: parse easy to use time formatsSami Kerola2013-08-291-0/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* last: check expected numeric user input is numberSami Kerola2013-08-231-1/+1
| | | | | | | This commit also changes the line count to use unsigned integers, as negative numbers in this context does not make sense. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: fix last stuffKarel Zak2013-08-121-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* last: merge sysvinit last/lastbOndrej Oprala2013-08-121-1/+15
| | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* chsh-chfn: fix bugs, improve compilationKarel Zak2013-02-131-8/+15
| | | | | | | | | | | | | | * rename --disable-require-password to --disable-chsh-chfn-password * is_local() is really unnecessary when linked with libuser * fix set_value_libuser() returns codes * fix chfn.c, there is no 'pw', but oldf.pw * don't link with PAM when--disable-chsh-chfn-password Signed-off-by: Karel Zak <kzak@redhat.com>
* chsh: Add libuser supportCody Maloney2013-02-131-0/+3
| | | | | | | | | | 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>
* chsh-chfn: Move pam auth to its own function, factoring out common codeCody Maloney2013-02-131-0/+2
| | | | | | | This makes it easier to add support for libuser, which needs the same PAM authentication. Also removes duplicate code between chsh and chfn. Signed-off-by: Cody Maloney <cmaloney@theoreticalchaos.com>
* build-sys: Add flag for enabling/disabling libuser support.Cody Maloney2013-02-131-0/+5
| | | | Signed-off-by: Cody Maloney <cmaloney@theoreticalchaos.com>
* sulogin: remove consoles.c from libcommonKarel Zak2012-12-231-1/+10
| | | | | | | | - move struct chardata to include/ttyutils.h - move console.{h,c} to login-utils/sulogin-* (it's sulogin specific) - fix sulogin and agetty includes Signed-off-by: Karel Zak <kzak@redhat.com>
* su: use get_terminal_name() for compatibility with login(1)Karel Zak2012-11-221-2/+2
| | | | | | login(1) uses tty name (!= path) in the syslog messages. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move runuser(1) to sbin dirKarel Zak2012-11-011-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: install su.1 if building suDave Reisner2012-09-051-0/+1
| | | | Signed-off-by: Dave Reisner <dreisner@archlinux.org>
* runuser: new command (derived from su(1))Karel Zak2012-09-041-0/+13
| | | | | | | | | | | | | | | | | | | | | | | This command is based on su(1), the differences: - based on Fedora runuser su(1) patch - not installed with suid rights - allowed for root users only - don't ask for password - uses PAM session, for example: $ cat /etc/pam.d/runuser auth sufficient pam_rootok.so session optional pam_keyinit.so revoke session required pam_limits.so session required pam_unix.so $ cat /etc/pam.d/runuser-l auth include runuser session optional pam_keyinit.so force revoke session include runuser Signed-off-by: Karel Zak <kzak@redhat.com>
* su: move generic su code to su-common.cKarel Zak2012-09-041-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move tests to check_PROGRAMSKarel Zak2012-07-301-1/+1
| | | | | | Thanks to Mike Frysinger. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-7/+7
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: new command, merge from sysvinitKarel Zak2012-06-291-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-15/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert login-utils/ to moduleKarel Zak2012-06-261-0/+146
Signed-off-by: Karel Zak <kzak@redhat.com>