summaryrefslogtreecommitdiff
path: root/utils/login.c
AgeCommit message (Collapse)Author
1997-02-20(argp_program_version): Make const.Miles Bader
1997-02-06(main):Miles Bader
Deal with crypt failing.
1997-02-06(main):Miles Bader
Look for NOBODY in ARGS_DEFS too, and use a last ditch default if we can't find it anywhere.
1996-09-25(main:verify_passwd):Miles Bader
Only declare reference to crypt weak if HAVE_CRYPT isn't defined.
1996-09-05*** empty log message ***Thomas Bushnell
1996-08-27(doc): Add program description.Miles Bader
1996-08-01(main/verify_passwd): Use #pragma weak instead of __attribute__ ((weak)).Miles Bader
(options): Change --inherit-environ to --preserve-environment. Change --no-environ to --no-environment-args. Change --environ to --envvar and --environ-default to --envvar-default.
1996-07-31*** empty log message ***Thomas Bushnell
1996-07-30*** empty log message ***Thomas Bushnell
1996-07-30*** empty log message ***Thomas Bushnell
1996-07-17(main): If chown fails, print error message using errno, not -1.Michael I. Bushnell
1996-07-13(dog):Miles Bader
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.
1996-07-12(main): Only start a watchdog timer if in a new login coll.Miles Bader
(watch_login): New function. (dog): Use watch_login. Get rid of wierd rules for root-gone-away.
1996-07-06(argp_program_version): New variable.Miles Bader
1996-07-06(add_utmp_entry): Pass the the basename of TTY to getutline.Miles Bader
1996-07-02(dog):Miles Bader
Include all args in the asprintf. Put the ARGV message in parens.
1996-07-01(kill_login): Don't kill dog.Miles Bader
(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.
1996-06-20(main): No need for EXEC_NEWTASK or EXEC_SECURE.Michael I. Bushnell
1996-06-19(hurd_file_name_path_lookup): Declaration removed.Miles Bader
(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.
1996-06-11(dog): Don't print stupid message if login session is empty.Miles Bader
(add_utmp_entry): Use gettimeofday instead of time to get the time.
1996-05-28(check_owned): Return OWNED, not NOTOWNED.Miles Bader
1996-05-28(main): Fetch the parent uids before checking their number.Miles Bader
(dog): Don't kill session if the user logged in! Print newline before message.
1996-05-15(main): Fork login timeout watchdog before clearing the process owner.Miles Bader
1996-05-15(dog): Use error to print messages. Use pretty time fmting.Miles Bader
1996-05-14(main): Only allow real users to make new login collections.Miles Bader
1996-05-13(main):Miles Bader
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.
1996-05-11(parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.Miles Bader
1996-05-10(main): Remove const cast from first arg to argz_create.Miles Bader
(main): Remove const from decl of USER & ARG. (fail): Remove const from decl of VIA.
1996-05-09(add_utmp_entry): Declare HOST `char const *'.Michael I. Bushnell
(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.
1996-03-19(main): Pass new arg to argp_parse.Miles Bader
1996-02-15(child_lookup): Pass last arg to hurd_file_name_path_lookup.Miles Bader
1996-02-15(main): Deal with the shell args reasonably.Miles Bader
1996-02-03(main):Miles Bader
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.
1996-02-02(main): Get the ttyname to chown.Miles Bader
1996-02-01(main): Chown the terminal.Roland McGrath
1996-01-30(main):Miles Bader
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.
1996-01-10(main):Miles Bader
Use add_canonical_host() to implement the -h option. Only let root specify the login host. child_lookup() now takes an additional PATH arg, and calls hurd_file_name_path_lookup() instead. Pass a path when looking up the shell executable. Do all file-name lookups using the target authentication, so that login isn't a security hole. Rework how password-checking is done somewhat (only ask when necessary). Use exec_reauth() instead of our own. If setting the real [ug]id, also add it as the `saved id'. Use BACKUP_SHELL instead of FAILURE_SHELL define. Get rid of various string vars only used once. (add_canonical_host): New function. (add_utmp_entry): Use VIA_ADDR instead of VIA in the utmp entry if it fits better. (add_entry): Function moved out of main. (cat): Take an io_t port instead of a file descriptor. (options, main): Add -k/--keep & -S/--shell-arg options. Remove -m/--umask option; use UMASK param instead. (FAILURE_SHELL): Macro deleted. (default_args): Add BACKUP_SHELL param.
1995-12-30(main, options): Add --retry/-R and --paranoid/-P options.Miles Bader
(main): Don't ask for password by name if only one user.
1995-12-29(main):Miles Bader
If -f/--no-passwd is specified, get rid of the effect of the login executable being setuid/gid. Only set the shell proc's owner to an effective uid.
1995-12-21Everything changed.Miles Bader
1995-12-13Initial revisionMiles Bader