LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-10-2007, 03:10 PM   #1
Brian Fograshy
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Configuring rsh


Hello all,

I am a extremely new administrator to the linux world.
I have been asked to create a login menu for a user(not root) that will enable this user to lock and unlock a predetermined set of ID's across 5 servers.
Right now I'm working on the command line the menu will call.
I'm using sudo, rsh and usermod.
Example command line:
"sudo /usr/bin/rsh server_name /usr/sbin/usermod -L User_ID".
I'm getting permission denied as a result.
I'm looking for instructions on the rsh and sudo part because I believe this is what's generating the permission denied message I'm getting. But I could be way off base too.
I have been working with configuring the sudoers, .rhosts, host and host.equiv files but not sure if their set up correctly on the host and target servers.
Thanks in advance.
Brian
 
Old 04-10-2007, 03:14 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Don't use rsh! Use ssh instead. rsh does not have security and it sends everything in clear text over your network. ssh has encryption built in and it is very secure. I don't know of anybody that uses rsh anymore. ssh does everything that rsh does and more.
 
Old 04-11-2007, 09:24 AM   #3
Brian Fograshy
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Configuring rsh

Thanks for the reply ramram29.
Actually I am trying ssh as well and with better success.
I have been able to lock/unlock ID's across servers using ssh.
My only remaining issue here is the non-root ID I'm using is being prompted to give the root pw before it works.
Is this where I need to set up the ssh authorization key pairs between the two servers?
 
Old 04-11-2007, 10:54 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Yes, you should generate blank ssh keys. Also, if you are running root commands make sure the user has sudo rights with the NOPASSWD parameter set. Then use the 'sudo' prefix on the command. You can run remote passwordless root commands using ssh keys and sudo. I would advise to be careful with security. One thing you can do for better security is create a cron job that will change the ssh and sudo settings just before you run your scheduled commands and then change them back when done.
 
Old 04-23-2007, 09:51 AM   #5
Brian Fograshy
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Configuring rsh

Thanks for your help ramram29,
Ssh is working out just fine now that I have the keys generated and the file and folder permissions set correctly.
Next hurdle is to use these command lines properly in a user's login menu.

Brian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsh consty Red Hat 1 07-21-2006 06:57 PM
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 10:34 AM
rsh rightsidedown Linux - Newbie 3 07-16-2004 04:08 PM
Problems configuring RSH in redhat 8.0 eddyh Linux - Newbie 0 10-16-2003 02:29 PM
how to use rsh?? nqduy Linux - Networking 2 08-21-2003 03:00 AM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration