如何限制某用户在特定 pty 的访问

开发者在线 Builder.com.cn 更新时间:2008-06-12

本文关键词: 操作系统 服务器 AIX pty

  环境 产品: AIX

  平台: RS

  软件版本: AIX V4

  问题 用户想限制某些端口的访问。

  解答 用户可以编辑/etc/security/user. For example:

  test:

  admin = false

  admgroups = system

  ttys = !/dev/pts/0,ALL

  结果是用户test可以在除了pts/0以外的所有端口登录,当test在pts/0登录时,

  系统报错You are not allowed to access the system via this terminal.

用户评论

  • 用户名
  • 评论内容