来源:
ChinaUnix博客 作者: 发布时间:2008-04-25 08:37:08

该文档可控制根用户登录的设备,该文档里记录的是能够作为根用户登录的设备名,如tty1、tty2等。用户是不能从不存在于该文档里的设备登录为根用户的。这种情况用户只能以普通用户登录进来,再用su命令转为根用户。/etc/securetty文档的格式如下:
# /etc/securetty: list of terminals on which root is allowed to login.
# See securetty(5) and login(1).
console
# for people with serial port consoles
ttyS0
# for devfs
tts/0
# Standard consoles
tty1
tty2
tty3
...
假如/etc/securetty是个空文档,则根用户就不能从任务的设备登录系统。只能以普通用户登录,再用su命令转成根用户。假如/etc/securetty文档不存在,那么根用户能够从任何地方登录。这样会引发安全问题,所以/etc/securetty文档在系统中是一定要存在的。
|
还没有关于此文章的相关评论!