auto login linux system
1. set grub timeout 3
This means that boot will continue after 3 seconds.
2. remove root account
vi /etc/passwd
In this line
root:X:0:0:root:/root:/bin/bash,
remove the second segment. This line will become as belows.
root::0:0:root:/root:/bin/bash
vi /etc/shadow
In this line
root:!^&#*@(&#*&:14125:0:99999:7::1,
remove the second segment. This line will become as belows.
root::14125:0:99999:7::1
3. auto login as root
vi /etc/inittab
find this line:
0:2345:raspawn:/sbin/mingetty console
change this line as below.
0:2345:raspawn:/sbin/mingetty --autologin root console
reboot the linux host, root will boot automatically.
1. set grub timeout 3
This means that boot will continue after 3 seconds.
2. remove root account
vi /etc/passwd
In this line
root:X:0:0:root:/root:/bin/bash,
remove the second segment. This line will become as belows.
root::0:0:root:/root:/bin/bash
vi /etc/shadow
In this line
root:!^&#*@(&#*&:14125:0:99999:7::1,
remove the second segment. This line will become as belows.
root::14125:0:99999:7::1
3. auto login as root
vi /etc/inittab
find this line:
0:2345:raspawn:/sbin/mingetty console
change this line as below.
0:2345:raspawn:/sbin/mingetty --autologin root console
reboot the linux host, root will boot automatically.
4526

被折叠的 条评论
为什么被折叠?



