diff options
-rw-r--r-- | config/login-.bash_login | 2 | ||||
-rw-r--r-- | config/login-.bashrc | 11 | ||||
-rw-r--r-- | config/login-.hushlogin | 0 | ||||
-rw-r--r-- | config/login-.profile | 3 | ||||
-rw-r--r-- | config/login-README | 9 | ||||
-rw-r--r-- | config/passwd | 8 |
6 files changed, 33 insertions, 0 deletions
diff --git a/config/login-.bash_login b/config/login-.bash_login new file mode 100644 index 00000000..19e522b2 --- /dev/null +++ b/config/login-.bash_login @@ -0,0 +1,2 @@ +. .bashrc +. .profile diff --git a/config/login-.bashrc b/config/login-.bashrc new file mode 100644 index 00000000..fbe6f4fc --- /dev/null +++ b/config/login-.bashrc @@ -0,0 +1,11 @@ +# login -- a normal login +alias login='exec login -p -R-p -R-aHOME -R-aMOTD -R-e_LOGIN_RETRY=yes' +alias logon=login +alias l=login +# quick login -- don't act like a login shell, but do cd to $HOME +alias ql='exec login -pSL -aMOTD -R-p -R-aHOME -R-aMOTD -R-e_LOGIN_RETRY=yes' +# su -- don't even cd to $HOME +alias su='exec login --program-name=su -pSL -aHOME -aMOTD -R-p -R-aHOME -R-aMOTD -R-e_LOGIN_RETRY=yes' +alias sush=su +alias help='cat $HOME/README' +alias '?'=help diff --git a/config/login-.hushlogin b/config/login-.hushlogin new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/config/login-.hushlogin diff --git a/config/login-.profile b/config/login-.profile new file mode 100644 index 00000000..92a5e309 --- /dev/null +++ b/config/login-.profile @@ -0,0 +1,3 @@ +PS1='login> ' +test "$_LOGIN_RETRY" || echo "Use \`login USER' to login, or \`help' for more information." +unset _LOGIN_RETRY diff --git a/config/login-README b/config/login-README new file mode 100644 index 00000000..43930a5c --- /dev/null +++ b/config/login-README @@ -0,0 +1,9 @@ +This is a hurd login shell; it is a normal user shell, but has no user +privileges. To login as a user with a userid of USER, use the command: + + login USER + +other special commands: + + ql USER # quick login -- just start a shell in USER's home directory + su USER # set-user -- start a new shell as USER, but don't cd to $HOME diff --git a/config/passwd b/config/passwd new file mode 100644 index 00000000..9fd48eb2 --- /dev/null +++ b/config/passwd @@ -0,0 +1,8 @@ +root::0:1:Lord of the Files:/root:/bin/bash +roland::5281:0:Roland McGrath:/home/fsf/roland:/bin/bash +mib::9107:11:Michael I. Bushnell p/BSG,,,:/home/gd3/mib:/bin/bash +miles::9427:10:Miles Bader:/home/gd3/miles:/bin/bash +silly:*:65535:65535:Silly!:/:/bin/false +login::-1:-1:Not logged in:/etc/login:/bin/bash +hag::31013:10:Daniel Hagerty,,,:/home/fsf/hag:/bin/bash +sgw::6289:11:stephen g. wadlow:/home/gp2/sgw:/bin/bash |