/usr/bin/su xiaowei -l -c "whoami"

用一个例子来演示会更加清晰