Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[jane@GRID10 globus]$ /usr/bin/rsh GRID10 /usr/bin/whoami
jane
I just installed Fedora 8, and before doing this, I installed xinetd and created a file named "/etc/hosts.equiv" and placed my IP in it. The exact tutorial of what I was following can be found at the url: http://globusconsortium.org/tutorial/ch2/page_1.php
Thanks for any help!
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Maybe your rshd daemon log can reveal some information.. Or try to use strace and attach to rshd (as root, of course). You probably need -f to follow spawned processes, '-o /root/log' to write it to file you can later read, '-s 1024' to get most strings uncut, and '-p [PID]' to connect to running process (rshd or inetd). What syscall causes EPERM?
Sorry, I'm not really certain what a lot of that you just said meant. Are those parameters I should be running with the command? What is the final command I should be running to try and see what happens? I want to get this working, i just don't want to screw something else up in the process :P
Not sure if this is exactly what you were looking for, but I ran *this* with the strace (not as root though..). I didn't want to spam the thread, but let me know what I should run here please.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Is rsh command setuid on your system? looks like it calls rcmd which demonstratively uses privileged ports to show it is genuine rsh made setuid by root, not some unprivileged-user's dirty tricks.
Not that I know of? Unless that is what one of the commands in the tutorial did, or it comes default as such, I did not set up the rsh command as setuid.
Have you activated the rsh file in the /etc/xinetd.d dir?
Normally rexec, rsh, remsh etc are defaulted to OFF because (like telnet) they use plain text logins, so easy to capture username/passwd.
I'm fairly sure that it is activated. Here is the file here, I believe:
Code:
[root@GRID10 globus]# cat /etc/xinetd.d/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
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = no
}
[root@GRID10 globus]#
Perhaps I have to reboot after editing it to not be disabled? Though, before trying the whoami command from the beginning, I did edit this file and /etc/xinetd.d/rlogin and set disable = no in both of them, and then issued a "/etc/init.d/xinetd restart" command. (As is says to do so in the tutorial)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.