- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- about rhosts
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-27-2003 08:23 PM
04-27-2003 08:23 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 08:29 PM
04-27-2003 08:29 PM
Re: about rhosts
NOTE
Some systems will only honor the contents of this file when it has
owner root and no write permission for anybody else. Some exceptionally
paranoid systems even require that there be no other hard links to the
file.
+++++
snipped from the man page.btw, is there any firewall? are u able to rlogin after supplying the passwd?
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 10:05 PM
04-27-2003 10:05 PM
Solution1) for all users - user has to be owner of .rhosts without write permission for group/others
2) for all users - "+" is unacceptable instead of hostname (unlike HPUX, for example)
3) for root - you need
echo "rsh" >>/etc/securetty
echo "rlogin" >>/etc/securetty
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 10:13 PM
04-27-2003 10:13 PM
Re: about rhosts
"echo "rsh" >>/etc/securetty
echo "rlogin" >>/etc/securetty " , does it need to restart any service ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 10:30 PM
04-27-2003 10:30 PM
Re: about rhosts
if i am correct, there is no need to restart any service.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 10:42 PM
04-27-2003 10:42 PM
Re: about rhosts
I have add the rlogin to the file /etc/securetty on my host but still can't let the remote user to rlogin to my host , can suggest what is wrong in my setting ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 10:43 PM
04-27-2003 10:43 PM
Re: about rhosts
BTW, is rsh enabled:
chkconfig --list |grep rsh
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 11:57 PM
04-27-2003 11:57 PM
Re: about rhosts
I run your statement , but no "on" pop up, I have checked the file /etc/securetty , I sure the entry "rsh" in the last line , what is wrong in my setting ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 12:40 AM
04-28-2003 12:40 AM
Re: about rhosts
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
rlogin
rsh
should remove these entries ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 01:49 AM
04-28-2003 01:49 AM
Re: about rhosts
chkconfig rsh on
Of course, you need rsh and xinetd packages, in RH it's
rsh-x.y-z
and
xinetd-x.y-z
run rpm -q xinetd
and
rpm -q rsh
in order to check if you have these packages installes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 02:15 AM
04-28-2003 02:15 AM
Re: about rhosts
i checked that rcp and xinetd is installed , but can't run "chkconfig rsh on" - "error reading information on service rsh: No such file or directory" , what is wrong in my system ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 02:22 AM
04-28-2003 02:22 AM
Re: about rhosts
is your xinetd enabled.
1. chkconfig --list
(are you able to see xinetd and rsh as a service of xinetd)
2. chkconfig xinetd on
(does xinetd gets enabled now)
3. chkconfig rsh on
(rsh gets enabled now)
still stuck?
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 02:48 AM
04-28-2003 02:48 AM
Re: about rhosts
when run /sbin/chkconfig rsh on , then it pop up the error "error reading information on service rsh: No such file or directory" , what is wrong in my system ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 03:57 AM
04-28-2003 03:57 AM
Re: about rhosts
chkconfig --list |grep rsh
and
rpm -qi rsh
and
rpm -qi xinetd
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 06:22 PM
04-28-2003 06:22 PM
Re: about rhosts
is rsh installed?
++++++++++++++++++
[coe@volga coe]$ rpm -qf /usr/sbin/in.rshd
rsh-server-0.17-10
[coe@volga coe]$ rpm -qi rsh-server-0.17-10
Name : rsh-server Relocations: (not relocateable)
Version : 0.17 Vendor: Red Hat, Inc.
Release : 10 Build Date: Mon 24 Jun 2002 05:35:15 AM IST
Install date: Wed 17 Apr 2002 09:53:13 PM IST Build Host: perf90.perf.redhat.com
Group : System Environment/Daemons Source RPM: rsh-0.17-10.src.rpm
Size : 60054 License: BSD
Signature : DSA/SHA1, Wed 04 Sep 2002 04:06:58 AM IST, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <>
Summary : Servers for remote access (rsh, rlogin, rcp).
Description :
The rsh-server package contains a set of programs which allow users to
run commmands on remote machines, login to other machines, and copy
files between machines (respectively, rsh, rlogin, and rcp). All three
of these commands use rhosts style authentication. This package
contains the servers needed for all of these services. It also
contains a server for rexec, an alternate method of executing remote
commands.
++++++++++++++++++
if not pls install. can u pls provide the output of chkconfig --list.
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2003 01:43 AM
04-30-2003 01:43 AM
Re: about rhosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2003 01:48 AM
04-30-2003 01:48 AM
Re: about rhosts
1) ls -l .rhosts
2) cat .rhosts
BTW, does rsh work for regular users?