1826333 Members
3531 Online
109692 Solutions
New Discussion

SUDO rlogin issue

 
stony_2
Occasional Contributor

SUDO rlogin issue

I have installed SUDO by downloading as an Internet express component [Ver 1.6.9p19]

Edited the /etc/sudoers file using visudo. Added the following line

username machine=/usr/bin/rlogin, /usr/sbin/dmesg, /usr/sbin/sam, /usr/sbin/swinstall, /sbin/ioscan,

I am able to run commands without password when logged in as the user.
$sudo dmesg -- Working

Issue: Unable to run command
$sudo rlogin machine -- not working

Command keeps prompting for password.

I removed the user and added it again, still does not help.

What else could be missing?

2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: SUDO rlogin issue

>>$sudo rlogin machine -- not working

What password is it asking for?

Is it asking for the password on the local machine or the remote machine?

My guess is that it is asking for the password on the remote machine because you don't have /etc/hosts.equiv or ~/.rhosts set up properly for rlogin.
Dennis Handly
Acclaimed Contributor

Re: SUDO rlogin issue

I would suggest you not put rlogin in sudo. You should rlogin to the remote machine then use sudo.