summaryrefslogtreecommitdiff
path: root/loginutils
Commit message (Collapse)AuthorAgeFilesLines
* getty: set tty attrs so that control chars are shown as ^cDenys Vlasenko2014-10-021-8/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* addgroup: mention -S in the help textDenys Vlasenko2014-08-151-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: explain when setsid() fails. no code changesDenys Vlasenko2014-05-111-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: add a delay if the password is incorrectRomain Naour2014-03-161-0/+1
| | | | | Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Kbuild: move CONFIG_PAM to general configurationBartosz Golaszewski2014-02-191-7/+0
| | | | | | | | | | Currently CONFIG_PAM depends on CONFIG_LOGIN, but is used by the httpd applet too. This patch moves said option to general configuration, thus allowing to compile httpd with PAM support independently from login. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser,addgroup: introduce and use CONFIG_LAST_IDTito Ragusa2014-01-173-21/+27
| | | | | | | | | | | Changes adduser.c, addgroup.c and Config.src to set and use CONFIG_LAST_ID. function old new delta adduser_main 841 865 +24 addgroup_main 407 425 +18 Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: check whether run with no USERNAME. Closes 6728Denys Vlasenko2013-12-201-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: move nuke_str() from passwd into libbbDenys Vlasenko2013-11-191-5/+0
| | | | | | | | | | | | function old new delta nuke_str - 15 +15 ask_and_check_password_extended 215 206 -9 init_main 781 771 -10 nuke_str 27 - -27 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 15/-46) Total: -31 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sulogin: use common password-checking routine.Denys Vlasenko2013-11-194-40/+9
| | | | | | | | | | | | | | | | This needed some extensions correct_passwd() function, which got renamed ask_and_check_password() to better describe what it does. function old new delta ask_and_check_password_extended - 215 +215 ask_and_check_password - 12 +12 vlock_main 394 397 +3 sulogin_main 494 326 -168 correct_password 207 - -207 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/1 up/down: 230/-375) Total: -145 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cryptpw: do not segfault on EOF. Closes 6350Denys Vlasenko2013-06-301-7/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: change execl sentinels from NULL to (char*)0Rich Felker2013-06-301-1/+1
| | | | | Signed-off-by: Rich Felker <dalias@aerifal.cx> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sulogin: allow system maintenance login if root password is emptyJonathan Liu2013-05-211-2/+2
| | | | | | | | | | | | | | The current password checking is unable to distinguish between the user entering an empty password or pressing Control-D. As a result, an empty password always results in normal startup. We modify bb_ask to return NULL if Control-D is pressed without entering a password. The sulogin applet is then modified to only proceed to normal startup if bb_ask returns NULL. This covers EOF with no password, interrupt by timeout and ^C. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sulogin: correct lying commentDenys Vlasenko2013-05-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: make it accept "adduser USER GROUP" formTito Ragusa2012-10-081-8/+14
| | | | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: tweak style, no code changesDenys Vlasenko2012-09-021-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add commented-out extended error diagnosticDenys Vlasenko2012-08-161-0/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: increase login name size limit from 32 to 64Denys Vlasenko2012-08-151-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* include sys/resource.h where neededMike Frysinger2012-07-051-0/+1
| | | | | | | | We use functions from sys/resource.h in misc applets, but don't include the header. This breaks building with newer glibc versions, so add the include where needed. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Move several applets to different install dir:Denys Vlasenko2012-06-201-2/+2
| | | | | | | | | | | | Moved to [/usr]/sbin: addgroup, adduser, delgroup, deluser, arping, chat, ether-wake, fdformat, ifplugd, ip, ipaddr, iplink, iproute, iprule, iptunnel, killall5, readahead, rtcwake, tftpd, add-shell, remove-shell, powertop. Moved to /bin for /usr/bin: kbd_mode. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: do not change to home dir unless -lPascal Bellard2012-06-121-1/+2
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix for NOCTTY killing us with SIGHUPDenys Vlasenko2012-04-261-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: -f should not ask for password even with PAMSergey Naumov2012-01-301-8/+10
| | | | | Signed-off-by: Sergey Naumov <sknaumov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: better comments on termios manipulations. No code changes.Denys Vlasenko2012-01-151-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd,cryptpw: make default encryption algorithm configurableDenys Vlasenko2012-01-084-2/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: Hurd has no CBAUD, work around thatDenys Vlasenko2011-10-301-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix a minor problem of Ctrl-D not printing '\n'Denys Vlasenko2011-10-233-36/+94
| | | | | | | Also removed defines for control chars which are never changed, and added login/getty README. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: reset tty attrs on Ctrl-C and Ctrl-D tooDenys Vlasenko2011-10-231-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add O_NONBLOCK to open which is used to drop cttyDenys Vlasenko2011-10-221-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: remove now not needed resetting of ALRM to to SIG_DFLDenys Vlasenko2011-10-221-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty,login: tighten up handling of ctty, pgrp, and tty attr restoring on ↵Denys Vlasenko2011-10-222-97/+156
| | | | | | timeout Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: shrink help textDenys Vlasenko2011-10-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: new option LOGIN_SESSION_AS_CHILDIan Wienand2011-09-142-6/+58
| | | | | Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chpasswd: fix possible free() or non-allocated string. +8 bytesDenys Vlasenko2011-09-111-6/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-0510-11/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: better logic for choosing addgroup -g/--gidDenys Vlasenko2011-05-211-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: prefer to call addgroup --gid, not non-std addgroup -gDenys Vlasenko2011-05-211-4/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd: shorter help textDenys Vlasenko2011-05-131-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: safe username passing to passwd/addgroupDenys Vlasenko2011-05-134-72/+57
| | | | | | | | | | | | | | | | | | | passwd: support creating SHA passwords random code shrink function old new delta crypt_make_pw_salt - 87 +87 adduser_main 883 904 +21 ... crypt_make_salt 99 89 -10 chpasswd_main 329 312 -17 packed_usage 28731 28691 -40 passwd_main 1070 1000 -70 cryptpw_main 310 224 -86 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/12 up/down: 154/-288) Total: -134 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim help textDenys Vlasenko2011-05-121-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd,chpasswd: reset password in /etc/passwd to "x" if /etc/shadow was updatedTito Ragusa2011-04-052-4/+10
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c ↵Pere Orga2011-04-039-0/+125
| | | | | | | editors/*.c loginutils/*.c mailutils/*.c Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: set PAM RHOSTRyan Phillips2011-03-221-0/+8
| | | | | Signed-off-by: Ryan Phillips <ryan@trolocsis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* s/FAIL_DELAY/LOGIN_FAIL_DELAY/Denys Vlasenko2011-03-084-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use user's shell instead of hardwired "/bin/sh" (android needs this)Denys Vlasenko2011-03-081-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bit rot in scripts/Makefile.IMADenys Vlasenko2011-03-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/login/su: do not sanitize shell name twiceDenys Vlasenko2011-03-062-14/+4
| | | | | | | | | | | function old new delta setup_environment 191 205 +14 login_main 1002 987 -15 su_main 474 458 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 14/-31) Total: -17 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* convert "do {...} while (1);" -> "while (1) {...}"Denys Vlasenko2011-03-021-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: use better argv passing to addgroupDenys Vlasenko2011-02-271-9/+18
| | | | | | | function old new delta adduser_main 855 882 +27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty config help: fix example scriptDenys Vlasenko2011-02-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: extend its config helpDenys Vlasenko2011-02-101-1/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>