Originally posted by Rick Pritchett
Originally posted by Richard Hart
Originally posted by Alice Kazin
MYUSER=`who am i | awk '{print $1}'`export HISTFILE=$HOME/.sh_history_$MYUSER
Rob Lindsey wrote:We have everyone login to the *nix server as their own account and then use:su - hcithat forces the *nix system to use the .profile of the hci user and not reference anything from the originating user.
Rob Lindsey wrote:
Originally posted by aaron kaufman-moore
David Barr wrote:Rob Lindsey wrote:We have everyone login to the *nix server as their own account and then use:su - hcithat forces the *nix system to use the .profile of the hci user and not reference anything from the originating user.Do they have to type in the hci password? What prevents them from logging in as hci directly?Also the "-i" option on sudo clears out the environment from the original user.
David Barr wrote:
aaron kaufman-moore wrote:We prevent them from logging in as hci directly by adding the following lines to /etc/ssh/sshd_config:Match User hciPasswordAuthentication no
aaron kaufman-moore wrote: