如何隐藏我们登录系统时的一些信息
1、如何隐藏当我们登录系统时会显示系统的版本及内核信息
隐藏或修改掉/etc/issue文件
2、如何添加当我们登录系统时显示的欢迎信息
在/etc/motd中添加你需要的信息
3、如何隐藏ssh连接后显示最后一次登录信息
方法1、修改/etc/ssh/sshd_config文件
开启 #PrintLastLog yes 并把yes修改为no
方法2、touch ~/.hushlogin
此种方法只有当前用户有用。
去消rm -rf ~/.hushlogin
4、查看内核版本信息的方法
方法1、
[root@localhost ~]# cat /proc/version
Linux version 2.6.18-164.el5 (mockbuild@x86-003.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Tue Aug 18 15:51:48 EDT 2009
方法2、
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64
GNU/Linux
5、查看linux发行版本的信息的方法
方法1、
[root@localhost ~]# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Release: 5.4
Codename: Tikanga
方法2、
[root@localhost ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Kernel \r on an \m
©著作权归作者所有:来自51CTO博客作者840700597的原创作品,如需转载,请注明出处,否则将追究法律责任