Monthly Archives: 六月 2014

linux 创建受限制的用户

#!/bin/bash username=”xianziuser” cp -a /bin/bash /bin/rbash useradd -c “A Restricted User” -g users -d /home/$username -s /bin/rbasusername rm -rf /home/$username;… Continue reading »