Login normal user as root

Bebas posting apa saja, diskusi apa saja, tetap gunakan bahasa yang sopan dan santun.
Post Reply
Ikan
~ Prajurit ~
~ Prajurit ~
Posts: 5
Joined: Wed Dec 13, 2017 9:31 am

Login normal user as root

Post by Ikan » Wed Dec 13, 2017 11:48 am

This is simple old way to login on the server as normal user and become to root with telnet, and this is not recommended for produce server, this guide dedicate for jury on the competition computer network, don’t make participant become foolish with your exam like this.

1. Install telnet
> sudo apt-get install xinetd telnetd
2. Add telnet service on xinetd
> touch /etc/xinetd.d/telnet
> ----- add this script -----
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
3. Add user where to add as root on telnet
> adduser wedus
4. Edit user wedus as root group
> nano /etc/passwd
> find : wedus:x:1001:1001:,,,:/home/wedus:/bin/bash
> change: wedus:x:0:0:,,,:/home/wedus:/bin/bash
5. Add pts/0 - 9 in /etc/securetty (0-9 its just to root terminal number can opened)
> nano /etc/securetty
>--- add this ---
> pts/0
> pts/1
> ...
> pts/9
6. Restart xinetd service
7. Login via Windows using telnet as user wedus
> ubuntu login: wedus
> Password:
> root@ubuntu:~#
Done… foolish way to remote a server x_x

kurang lebih mohon dikembalikan

Wassalamualaikum Wr Wb

sumber : http://www.alan.web.id/login-normal-use ... elnet.html

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests