: ${user:=root}
if [ `id -u -n` = "$user" ]; then
	if [ -z "$no_rc" ]; then
		for P in ~/.bash_profile ~/.profile; do
			if [ -e "$P" ]; then
				. "$P"
				break
			fi
		done 
	fi
else
	exec sudo -u "$user" "$0" "$@"
	exit 1
fi
