thnx for replying,
so i was about to make changes to rsh, rlogin and rexec, until i realized that they don't even exist in /etc/xinetd.d
so what i did is i started to search for examples of these files, this is what i created:
% emacs rsh
# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
# consequently, for the rsh(1) program. The server provides \
# remote execution facilities with authentication based on \
# privileged port numbers from trusted hosts.
service shell
{
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
}
% emacs rlogin
# description: rlogind is the server for the rlogin(1) program. The server \
# provides a remote login facility with authentication based on \
# privileged port numbers from trusted hosts.
service login
{
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rlogind
}
% emacs rexec
# description: rexecd is the server for the rexec(1) program. The server \
# provides a remote login facility with authentication based on \
# privileged port numbers from trusted hosts.
service login
{
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rexecd
}
then i typed
% /etc/rc.d/init.d/xinetd restart
% rsh localhost
it still told me connection refused
while i was searching for the rsh, rlogin and rexec files i read somewhere that i should edit etc/sysconfig/ipchains
and this is what i have now for ipchains:
# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
# firewall; such entries will *not* be listed here.
:input ACCEPT
:forward ACCEPT
utput ACCEPT
-A input -s 0/0 67:68 -d 0/0 67:68 -p udp -i eth0 -j ACCEPT
-A input -s 0/0 67:68 -d 0/0 67:68 -p udp -i eth1 -j ACCEPT
-A input -s 0/0 -d 0/0 -i lo -j ACCEPT
#
# New rules for rlogin/rsh traffic, incoming or outgoing
#
-A input -p tcp -s 0/0 -d 0/0 513 -b -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 514 -b -j ACCEPT
#
# End of new rules
#
-A input -p tcp -s 0/0 -d 0/0 0:1023 -y -j REJECT
-A input -p tcp -s 0/0 -d 0/0 2049 -y -j REJECT
-A input -p udp -s 0/0 -d 0/0 0:1023 -j REJECT
-A input -p udp -s 0/0 -d 0/0 2049 -j REJECT
-A input -p tcp -s 0/0 -d 0/0 6000:6009 -y -j REJECT
-A input -p tcp -s 0/0 -d 0/0 7100 -y -j REJECT
i also read that i should edit /etc/hosts.equiv but it doesn't exist either. so i created the file and it holds:
localhost.localdomain
so after making these modifications i restarted xinetd and rsh localhost, but i still got connection refused. i don't know what i'm doing wrong.
oh one more thing, i checked if i have /usr/sbin/in.rshd, /usr/sbin/in.rlogind and /usr/sbin/in.rexecd but i don't. what should write for these??? thank u so much
btw, yes, Senor Pedo does mean Mr. Fart in spanish.