我有一个有 5 个帐户的 cent-OS 服务器:developer、user1、user2和. 所有用户主目录都位于like 、、和. 我想在文件夹中创建 4 个脚本: 、和。当用户运行脚本时,他会切换到( )的主目录,以此类推剩余的脚本。背后的想法是让开发人员无法访问根目录,并允许通过简单地执行具有该用户名的命令来切换到其他用户的主目录。可能吗?user3user4/home/home/developer/home/user1/home/user2/home/user3/home/user4user1.shuser2.shuser3.shuser4.sh/home/developerdeveloperuser1.shuser1cduser1/home/user1
40953 次