Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 07:03 PM
04-18-2004 07:03 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 07:09 PM
04-18-2004 07:09 PM
Re: rlogin
Yes, '.rhosts' exists, and work int he same manner as most other Unix varients (in user home-directory, 600 permissions).
To 'rlogin' as root however, you will have to bypass some of the default security however.
The eastiest way is to modify '/etc/securetty', and put the keyword 'rsh' on a line by it's self.
This should allow root rlogin's. You'll also need to enable the 'rlogin' and 'rsh' services (chkconfig rlogin on; chkconfig rsh on).
Personally, I'd start by looking into using 'ssh' instead. It's far more secure for these sorts of things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 07:25 PM
04-18-2004 07:25 PM
Re: rlogin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 07:31 PM
04-18-2004 07:31 PM
Re: rlogin
So you create it in '~user/.rhosts', make sure it has only user-RW permissions (chmod 600 ~user/.rhosts). Within the '.rhosts' file you have the machine name, or IP addres, of the machine you are coming from. This name has to be the same as what your machine resolves it as! Watching the errors in your log files help.
If it's the 'root' user you are trying to 'rlogin' with, then you need to add 'rsh' to '/etc/securetty'. If it's any other user, then it doesn't matter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 07:35 PM
04-18-2004 07:35 PM
Re: rlogin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 08:56 PM
04-18-2004 08:56 PM
Re: rlogin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 08:59 PM
04-18-2004 08:59 PM
Solutionrh8 uses pam for authenticatin users, so all you need is to check the /etc/pam.d/rlogin file ; it specifies all the steps linux do after granting you access.
An rlogin file working with .rhosts is the following:
#%PAM-1.0
# For root login to succeed here with pam_securetty, "rlogin" must be
# listed in /etc/securetty.
auth required /lib/security/pam_nologin.so
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_env.so
auth sufficient /lib/security/pam_rhosts_auth.so
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
First of all, add rlogin in /etc/securetty with
#echo rlogin >> /etc/securetty;
(recommend the double '>>' )
then change your /etc/pam.d/rlogin file like the one above.
Then it should work.
To keep your box safe i strongly recommend to you to read carefully the PAM documentation. It's essential for managing your machine.
Any comments about the rlogin file are welcome!
Peace, Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 10:28 PM
04-18-2004 10:28 PM