Lines Matching defs:login
29 * zlogin provides three types of login which allow users in the global
32 * - "interactive login" is similar to rlogin(1); for example, the user could
36 * session. In this mode, login(1) (and its -c option, which means
40 * - "non-interactive login" is similar to su(1M); the user could issue
43 * 'su' is used to do the login setup work.
45 * - "console login" is the equivalent to accessing the tip line for a
977 zone_get_user_cmd(brand_handle_t bh, const char *login, char *user_cmd,
981 if (brand_get_user_cmd(bh, login, user_cmd, len) != 0)
1030 zone_login_cmd(brand_handle_t bh, const char *login)
1036 /* Get the login command for the target zone. */
1040 if (brand_get_forcedlogin_cmd(bh, login,
1044 if (brand_get_login_cmd(bh, login,
1097 * 'login -z <from_zonename> -f' (-z is an undocumented option which tells
1098 * login that we're coming from another zone, and to disregard its CONSOLE
1102 prep_args(brand_handle_t bh, const char *login, char **argv)
1137 if (strcmp(login, "root") != 0) {
1141 new_argv[a++] = (char *)login;
1156 new_argv = zone_login_cmd(bh, login);
1195 * We also set $SHELL, since neither login nor su will be around to do
1236 * login(1) will do it. We don't do this in failsafe mode, since it presents
1257 * login user. If this fails, HOME will be set to "/", SHELL
1259 * SUPATH <login> -c <cmd>.
1273 * setup described in login(1), for lack of a better precedent.
1732 char *login = "root";
1790 login = optarg;
1805 "-l may not be specified for console login"));
1811 "-n may not be specified for console login"));
1817 "-S may not be specified for console login"));
1823 "-R may not be specified for console login"));
1830 zerror(gettext("-l may not be specified for failsafe login"));
1836 "-d may only be specified with console login"));
1847 "-n may not be specified for interactive login"));
1856 "console login."));
1885 zerror(gettext("cannot login to a zone which is '%s'"),
1933 "failsafe or non-interactive login "
1938 " to login to %s zone."),
1992 zerror(gettext("login allowed only to running zones "
2054 if ((new_args = prep_args(bh, login, proc_args)) == NULL) {
2061 * a passwd(4) entry for login.
2064 if (zone_get_user_cmd(bh, login, user_cmd,
2102 zerror(gettext("cannot use interactive login with scratch "
2243 * In failsafe mode, we don't use login(1), so don't try
2252 * execute the brand's login program.