1. 若只希望用户没telnet权限,则需要修改/etc/passwd中对应该用户的shell为/bin/true。
2. 若只希望用户没有telnet和ftp权限,则需要修改/etc/passwd中对应该用户的shell为/bin/false。