Como bloquear acesso direto pelo root no servidor?
Eu faço um curso tecnico e tenho que entregar um relatorio na onde tenho que responder essa treis questões:
1 Como bloquear acesso direto pelo root no servidor ?
2 Como Bloquear Terminais no servidor?
3 Como Desativar a tecla CTRL-ALT-DEL para reboot, deixando apenas um usuario?
Por favor um estou pendindo quem souber responder todas ou algumas dessa questoes por favor coloque aqui pois eu ja tentei de tudo mais não consigo fazer.
Desde ja agradeço a ajuda de todos.
Como bloquear acesso direto pelo root no servidor?
Tudo isso vc faz no arquivo /etc/inittab
Bloquear Terminais no servidor
Comenta a Linha :
# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
#c2:1235:respawn:/sbin/agetty 38400 tty2 linux
#c3:1235:respawn:/sbin/agetty 38400 tty3 linux
#c4:1235:respawn:/sbin/agetty 38400 tty4 linux
#c5:1235:respawn:/sbin/agetty 38400 tty5 linux
#c6:12345:respawn:/sbin/agetty 38400 tty6 linux
assim fica soh com um terminal aberto
Desativar a tecla CTRL-ALT-DEL para reboot
Comenta a Linha :
# What to do at the "Three Finger Salute".
#ca::ctrlaltdel:/sbin/shutdown -t5 -r now
Como bloquear acesso direto pelo root no servidor?
para bloquear o root basta comentar as linhas no /etc/securetty, faltou so vc falar isso :)