#esac
# identify via terminal last login (su, sudo)
-if [ -z "$FTPADM" ]; then
- LAST_TTY=$(tty)
- LAST_LOGIN=$(last -if /var/run/utmp | awk -vtty="${LAST_TTY#/dev/}" '$2 == tty && $0 ~ /still logged in/ { print $1; exit; }')
- export FTPADM=$LAST_LOGIN
- unset LAST_TTY LAST_LOGIN
-fi
+#if [ -z "$FTPADM" ]; then
+# LAST_TTY=$(tty)
+# LAST_LOGIN=$(last -if /var/run/utmp | awk -vtty="${LAST_TTY#/dev/}" '$2 == tty && $0 ~ /still logged in/ { print $1; exit; }')
+# export FTPADM=$LAST_LOGIN
+# unset LAST_TTY LAST_LOGIN
+#fi
# per-admin defaults
-case "$FTPADM" in
-'')
- export FTPADM=$USER
- ;;
-esac
+#case "$FTPADM" in
+#'')
+# export FTPADM=$USER
+# ;;
+#esac
# let each ftp admin have own history file
-if [ "$FTPADM" ]; then
- export HISTFILE=$HOME/.history-$FTPADM
- export CDHISTFILE=$HOME/.cd_history-$FTPADM
-fi
-export EDITOR=vim
+#if [ "$FTPADM" ]; then
+# export HISTFILE=$HOME/.history-$FTPADM
+# export CDHISTFILE=$HOME/.cd_history-$FTPADM
+#fi
+#export EDITOR=vim
PATH=$PATH:~/tld-ftp-admin/bin