blob: 599240827118d3cc7c7318d34a6bd8677298550e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash -noprofile
#
# Traditional prompting login program
#
# This can be made the system default by making it the shell for the
# pseudo-user `login'.
#
prompt='login: '
user=''
test "$_LOGIN_RETRY" && echo ''
unset _LOGIN_RETRY
until [ "$user" ]; do
echo -n "$prompt"
read user args || exit 0
done
exec login "$@" -p --paranoid -R-aSHELL="$0" -R-aMOTD -R-p -R-e_LOGIN_RETRY=yes "$user" $args
|