有没有办法在 Solaris 中创建一个用户帐户,它只允许用户运行一个命令?没有登录外壳或其他任何东西。我可以用/usr/bin/falsein来做,/etc/passwd然后让用户使用ssh <hostname> <command>,但是有没有更好的方法来做到这一点?
/usr/bin/false
/etc/passwd
ssh <hostname> <command>
login ssh solaris account-restrictions
account-restrictions ×1
login ×1
solaris ×1
ssh ×1