改/etc/passwd文件

要限定用户的根目录,改下下 /etc/passwd 文件用户重新登录就生效,不用重新启动系统
原文地址:https://www.cnblogs.com/abinxm/p/1495144.html