This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Replacement for raw "ksu" in kerberized environments; | |
# behaves more like "su -", and retains xauth data. | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: `basename $0` <target user> [ <command> [ <arg> ] ... ]" | |
exit 2 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Append to /root/.bashrc | |
[ ! -d $HOME/.history ] && mkdir $HOME/.history | |
set -- `/usr/bin/who -m` | |
HISTFILE="$HOME/.history/`/bin/date +%Y-%m-%d.%T`.`/bin/hostname -s`.$$.$1" |
NewerOlder