当前位置: 技术问答>linux和unix
切换用户
来源: 互联网 发布时间:2015-09-22
本文导语: 从普通用户从新以ROOT身份登陆用LOGIN不可以吗,那要用啥呢 | Linux建议不这么做,因为不安全,如果你实在要这么做可以 In default, root can't connect to Redhat/Fedora system. Telnet: Add "pts/0, pts/1, pt...
从普通用户从新以ROOT身份登陆用LOGIN不可以吗,那要用啥呢
|
Linux建议不这么做,因为不安全,如果你实在要这么做可以
In default, root can't connect to Redhat/Fedora system.
Telnet:
Add "pts/0, pts/1, pts/2, pts/3................" to the end of the file "/etc/securetty"
FTP:
Delete the name "root" from the file "/etc/vsftpd.ftpusers"
欢迎访问我的个人网站 www.linuxc.net
In default, root can't connect to Redhat/Fedora system.
Telnet:
Add "pts/0, pts/1, pts/2, pts/3................" to the end of the file "/etc/securetty"
FTP:
Delete the name "root" from the file "/etc/vsftpd.ftpusers"
欢迎访问我的个人网站 www.linuxc.net
|
在shell中用 su - root 或者直接 su 回车来登录root用户!
|
用su来转换成root身份;
恢复原来身份用exit
恢复原来身份用exit