aboutsummaryrefslogtreecommitdiff
path: root/utils/login.c
Commit message (Collapse)AuthorAgeFilesLines
* 1999-09-23 Mark Kettenis <kettenis@gnu.org>Roland McGrath1999-09-221-0/+1
| | | | * login.c (main): Pass controlling terminal ID port to the child.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-0/+1
| | | | | | | | * pids.c: Add #include <sys/mman.h> for munmap decl. * showtrans.c: Likewise. * login.c: Likewise. * storeread.c: Likewise. * msgport.c: Likewise.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-3/+3
| | | | | | | | | | * login.c (cat): Use munmap instead of vm_deallocate. (check_owned): Likewise. (kill_login): Likewise. * storeread.c (main): Likewise. * showtrans.c (main): Likewise. * pids.c (add_fn_pids): Likewise. * msgport.c (cmd_getenv): Likewise.
* 1999-06-21 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-231-13/+12
| | | | | * login.c (main): For no-uids shell, default SH_ARG0 to informative value. Use asprintf to construct it.
* Fri Mar 12 15:22:02 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-03-121-0/+2
| | | | | * login.c (add_utmp_entry): Properly call setutent and endutent around the getutline call.
* Fri Feb 19 02:43:11 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-191-3/+7
| | | | | * login.c (main): Correctly implement -f instead of always acting as if it were set.
* Fri Feb 19 02:43:11 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-191-1/+3
| | | | | | * login.c (main): When transitioning from no UID's to having UID's create a new session like normal. Reported by Mark M. Kettenis <kettenis@wins.uva.nl>.
* 1999-02-06 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-02-101-2/+2
| | | | | * login.c (main): If no effective uid, really use first auxiliary uid to use as password entry to get parameters from.
* 1998-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-07-201-4/+4
| | | | | | | | | | | * ps.c (main): Fix return type to int, and use return. * ids.c (main): Likewise. * w.c (main): Likewise. * login.c (main): Likewise. * settrans.c (main): Likewise. * showtrans.c (main): Likewise. * fsysopts.c (main): Likewise. * storeinfo.c (main): Likewise.
* (main):Miles Bader1997-09-291-7/+4
| | | | Use ugids_verify_make_auth instead of ugids_verify and ugids_make_auth.
* (child_argps):Miles Bader1997-05-271-267/+103
| | | | | | | | | | New variable. (main): Use ugids operations instead of doing [ug]id frobbing ourselves. (options): Remove uid/gid args. <ugids.h>: New include.
* (main: verify_passwd):Miles Bader1997-05-151-8/+29
| | | | Add user-in-group-0-can-use-his-own-password-to-su hack.
* Wed Apr 16 15:59:41 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-04-161-2/+2
| | | | * login.c (add_utmp_entry): Revert change of December 10, 1996.
* Tue Dec 10 11:40:04 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-04-161-2/+2
| | | | | * login.c (add_utmp_entry): ut_addr has changed to be an array; stash the IP address in the first slot.
* (argp_program_version): Make const.Miles Bader1997-02-201-1/+1
|
* (main):Miles Bader1997-02-061-0/+4
| | | | Deal with crypt failing.
* (main):Miles Bader1997-02-061-2/+5
| | | | | Look for NOBODY in ARGS_DEFS too, and use a last ditch default if we can't find it anywhere.
* (main:verify_passwd):Miles Bader1996-09-251-0/+2
| | | | Only declare reference to crypt weak if HAVE_CRYPT isn't defined.
* *** empty log message ***Thomas Bushnell1996-09-051-1/+3
|
* (doc): Add program description.Miles Bader1996-08-271-0/+1
|
* (main/verify_passwd): Use #pragma weak instead of __attribute__ ((weak)).Miles Bader1996-08-011-9/+9
| | | | | | | (options): Change --inherit-environ to --preserve-environment. Change --no-environ to --no-environment-args. Change --environ to --envvar and --environ-default to --envvar-default.
* *** empty log message ***Thomas Bushnell1996-07-311-3/+2
|
* *** empty log message ***Thomas Bushnell1996-07-301-7/+10
|
* *** empty log message ***Thomas Bushnell1996-07-301-1/+5
|
* (main): If chown fails, print error message using errno, not -1.Michael I. Bushnell1996-07-171-1/+1
|
* (dog):Miles Bader1996-07-131-25/+15
| | | | | | | | Get rid of `Beware of dog' -- it can't ever happen. Rename watch_login calls to check_login; don't use return value. (check_login): Renamed from watch_login. Change type to void. Exit if there's no such process.
* (main): Only start a watchdog timer if in a new login coll.Miles Bader1996-07-121-49/+48
| | | | | (watch_login): New function. (dog): Use watch_login. Get rid of wierd rules for root-gone-away.
* (argp_program_version): New variable.Miles Bader1996-07-061-0/+2
|
* (add_utmp_entry): Pass the the basename of TTY to getutline.Miles Bader1996-07-061-15/+27
|
* (dog):Miles Bader1996-07-021-1/+1
| | | | | Include all args in the asprintf. Put the ARGV message in parens.
* (kill_login): Don't kill dog.Miles Bader1996-07-011-26/+37
| | | | | | (dog): Take new ARGV argument, and record status in it for ps. (main): Pass ARGV to dog. (add_utmp_entry): Always fill in UTMP.ut_line. Set UTMP.ut_type.
* (main): No need for EXEC_NEWTASK or EXEC_SECURE.Michael I. Bushnell1996-06-201-2/+1
|
* (hurd_file_name_path_lookup): Declaration removed.Miles Bader1996-06-191-58/+33
| | | | | | | | | (main: child_lookup): Pass 0 for new LOOKUP arg to hurd_file_name_path_lookup. (get_utmp_host): Function removed. (add_utmp_entry): Get rid of TTY_FD parameter. Don't search for the tty unless we need it to get the old host, since login does it for us. Also use the `existing host' in the case that a new one isn't specified. (main): Update call to add_utmp_entry.
* (dog): Don't print stupid message if login session is empty.Miles Bader1996-06-111-5/+14
| | | | (add_utmp_entry): Use gettimeofday instead of time to get the time.
* (check_owned): Return OWNED, not NOTOWNED.Miles Bader1996-05-281-1/+1
|
* (main): Fetch the parent uids before checking their number.Miles Bader1996-05-281-5/+21
| | | | (dog): Don't kill session if the user logged in! Print newline before message.
* (main): Fork login timeout watchdog before clearing the process owner.Miles Bader1996-05-151-11/+16
|
* (dog): Use error to print messages. Use pretty time fmting.Miles Bader1996-05-151-2/+9
|
* (main): Only allow real users to make new login collections.Miles Bader1996-05-141-1/+2
|
* (main):Miles Bader1996-05-131-5/+112
| | | | | | | | | Only add utmp entry for session leader. Clear process owner if no uids. Fork self-destruct timer when appropiate. (default_args): Add NOAUTH_TIMEOUT entry. (check_owned, kill_login, dog): New functions. (options, main): Remove -z/--no-utmp option.
* (parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.Miles Bader1996-05-111-1/+2
|
* (main): Remove const cast from first arg to argz_create.Miles Bader1996-05-101-8/+7
| | | | | (main): Remove const from decl of USER & ARG. (fail): Remove const from decl of VIA.
* (add_utmp_entry): Declare HOST `char const *'.Michael I. Bushnell1996-05-091-9/+12
| | | | | | | | | | (main) [fail]: Declare VIA `char const *'. (main): Declare USER `char const *'. Declare ARG `char const *'. (main): Provide new third arg to proc_setowner. (main) [parse_opt] [case ARGP_KEY_ARG]: Cast first arg of argz_create appropriately. (main): Likewise.
* (main): Pass new arg to argp_parse.Miles Bader1996-03-191-1/+1
|
* (child_lookup): Pass last arg to hurd_file_name_path_lookup.Miles Bader1996-02-151-2/+2
|
* (main): Deal with the shell args reasonably.Miles Bader1996-02-151-5/+5
|
* (main):Miles Bader1996-02-031-17/+22
| | | | | | | | Don't ask for a password unecessarily. When the user is specified as the first argument, always add it as both effective, real, and saved ids, even if there are others already. Only chown the tty if NO_LOGIN isn't set. Avoid duplicating the old real id when keeping the old ids.
* (main): Get the ttyname to chown.Miles Bader1996-02-021-6/+10
|
* (main): Chown the terminal.Roland McGrath1996-02-011-1/+11
|
* (main):Miles Bader1996-01-301-60/+100
| | | | | | | | | | | | | | | | | | | | Put LOGNAME in the environ even if it was already. Try to set the default path using confstr(). Call setlogin(). Turn on RETRY when the -h option is specified. (options, main): Change the -R/--retry option so that the optional argument is an argument to add to those passed to login when retrying, and remove all the hardwired arguments (except propagating -h/--via). (main, default_args): Replace the BACKUP_SHELL param with BACKUP_SHELLS, which is a list of things to try. The default includes both bash and the /bin/sh. (default_args, options, main): Get rid of the -n/--nobody option and variables, making it an additional login parameter. (add_utmp_entry): Get rid of declaration for login(). (copied_args): Add "USER". (default_args, default_env): Make the default path just /bin.