<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: .rhost file in users home directories in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663836#M49035</link>
    <description>Suggest you stick to the /etc/rhosts and /etc/hosts.equiv files rather than getting into user's home directories.&lt;BR /&gt;&lt;BR /&gt;In fact, since you dont want other users to rlogin to the machine, you should have a policy expressly forbidding any user from having a $HOME/.rhosts file. You may want to run a small script weekly or so, to search for user-created .rhosts files and delete them.</description>
    <pubDate>Wed, 13 Feb 2002 11:10:18 GMT</pubDate>
    <dc:creator>Deepak Extross</dc:creator>
    <dc:date>2002-02-13T11:10:18Z</dc:date>
    <item>
      <title>.rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663833#M49032</link>
      <description>Sorry if this question has been asked before.&lt;BR /&gt;&lt;BR /&gt;I have a need to to allow only a few non root users to rlogin to a host. The users that aren't allowed to rlogin I wish to have a root owned .rhosts file in the users home directory. Trouble is the user if they wish can remove the root owned .rhosts file because it's in a directory they own.&lt;BR /&gt;&lt;BR /&gt;I could add an entry in the .profile to see how the user logged in (different tty types)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2002 10:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663833#M49032</guid>
      <dc:creator>Paul Winchcombe</dc:creator>
      <dc:date>2002-02-13T10:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663834#M49033</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt; hosts.equiv(4)                                               hosts.equiv(4)&lt;BR /&gt;&lt;BR /&gt; NAME&lt;BR /&gt;      hosts.equiv, .rhosts - security files authorizing access by remote&lt;BR /&gt;      hosts and users on local host&lt;BR /&gt;&lt;BR /&gt; DESCRIPTION&lt;BR /&gt;      The /etc/hosts.equiv file and files named .rhosts found in users' home&lt;BR /&gt;      directories specify remote hosts and users that are "equivalent" to&lt;BR /&gt;      the local host or user.  Users from equivalent remote hosts are&lt;BR /&gt;      permitted to access a local account using rcp or remsh or to rlogin to&lt;BR /&gt;      the local account without supplying a password (see rcp(1), remsh(1),&lt;BR /&gt;      and rlogin(1)).  The security provided by hosts.equiv is implemented&lt;BR /&gt;      by the ruserok() library routine, (see rcmd(3N)).&lt;BR /&gt;&lt;BR /&gt;      In this description, hostequiv means either the system&lt;BR /&gt;      /etc/hosts.equiv file or the user .rhosts file.  Note that .rhosts&lt;BR /&gt;      must be owned by the user in whose home directory it is found and it&lt;BR /&gt;      must not be a symbolic link.  The /etc/hosts.equiv file defines&lt;BR /&gt;      system-wide equivalency, whereas a user's .rhosts file defines&lt;BR /&gt;      equivalency between the local user and any remote users to whom the&lt;BR /&gt;      local user chooses to allow or deny access.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                     Steve Steel&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2002 10:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663834#M49033</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-13T10:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663835#M49034</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;from "man rlogind":&lt;BR /&gt;&lt;BR /&gt;...  fails, login(1) prompts the user with the normal login sequence.  The -l option to rlogind prevents any authentication based on the user's .rhosts file unless the user is logging in as super-user.  ....&lt;BR /&gt;&lt;BR /&gt;So if you reconfigure inetd.conf, you could make rlogind only work with /etc/rhosts and /etc/hosts.equiv, it will simply ignore $HOME/.rhosts&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2002 10:37:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663835#M49034</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-13T10:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663836#M49035</link>
      <description>Suggest you stick to the /etc/rhosts and /etc/hosts.equiv files rather than getting into user's home directories.&lt;BR /&gt;&lt;BR /&gt;In fact, since you dont want other users to rlogin to the machine, you should have a policy expressly forbidding any user from having a $HOME/.rhosts file. You may want to run a small script weekly or so, to search for user-created .rhosts files and delete them.</description>
      <pubDate>Wed, 13 Feb 2002 11:10:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663836#M49035</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-02-13T11:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663837#M49036</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;I presume you want to allow rlogin without a password.  If not, you don't need to use .rhosts nor /etc/hosts.equiv.  I'd also remove the "r" services from /etc/inetd.conf.&lt;BR /&gt;&lt;BR /&gt;You may want to use /var/adm/inetd.sec to limit the IP addresses a service will allow connections from.&lt;BR /&gt;&lt;BR /&gt;When I've used /etc/hosts.equiv, I did chown root:sys and chmod 000 on it.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 13 Feb 2002 14:05:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663837#M49036</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-02-13T14:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663838#M49037</link>
      <description>Thanks for all the info but I think I may have misled you all.&lt;BR /&gt;&lt;BR /&gt;If root creates a .rhost file in my home directory /home/paulw/ preventing me from rlogin/remsh into the box without a password. I as user paulw can remove the .rhost file even though it is created and owned by root.&lt;BR /&gt;I understand that I can prevent the use of users .rhost file by editing the inetd.conf file but I want to allow some users to rlogin and other not to. I also cannot be sure of where the user will login from. I.E. the ip address of the remote machine is unknown.&lt;BR /&gt;&lt;BR /&gt;So basically ignoring r-services for a moment. &lt;BR /&gt;&lt;BR /&gt;How can a root user write a file to a users home directory and prevent that user from moving/deleting the file when the directory is owned by that user.&lt;BR /&gt;&lt;BR /&gt;I've tried looking at acl but I think this is just for hfs filesytems.&lt;BR /&gt;&lt;BR /&gt;or am I asking the impossible.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2002 17:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663838#M49037</guid>
      <dc:creator>Paul Winchcombe</dc:creator>
      <dc:date>2002-02-13T17:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663839#M49038</link>
      <description>May be you need to take a look at SSH.  You get encrypted "equivalents" of telnet, ftp and more. Using OpenSSH, you can have automated cron scripts connecting to other UNIX box without keeping a password (or unencrypted private key) on disk.&lt;BR /&gt;You can try secure shell, obtain openssh and the other required pieces (i.e. zlib, perl, etc.) at &lt;A href="http://hpux.cs.utah.edu/" target="_blank"&gt;http://hpux.cs.utah.edu/&lt;/A&gt;  in depot format for HP-UX 11 No compile process needed. Just do the whole thing through swinstall. I'd visit the &lt;A href="http://www.openssh.com" target="_blank"&gt;www.openssh.com&lt;/A&gt; as well to get some background information. Having said that ssh is not an HP product... !!&lt;BR /&gt;other resources:&lt;BR /&gt;You can look at SSH Case studies at &lt;A href="http://www.unixreview.com/books/book_preview9.shtml" target="_blank"&gt;http://www.unixreview.com/books/book_preview9.shtml&lt;/A&gt; for examples of smart SSH usage. &lt;BR /&gt;&lt;BR /&gt;g'd luck&lt;BR /&gt;t++</description>
      <pubDate>Wed, 13 Feb 2002 18:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663839#M49038</guid>
      <dc:creator>T. M. Louah</dc:creator>
      <dc:date>2002-02-13T18:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663840#M49039</link>
      <description>Modify your inetd.conf file and add the -l option to the r* services.  This will disable .rhosts files.  Add the approved users to the file /etc/hosts.equiv.  Other users will still be able to use the r* services but will have to provide passwords.&lt;BR /&gt;&lt;BR /&gt;If you have tcp wrappers enabled, you have better ability to restrict access to the r*.  This includes restrictions by user and host.&lt;BR /&gt;&lt;BR /&gt;As noted above ssh (secure shell) may be a better option.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2002 19:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663840#M49039</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-02-13T19:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: .rhost file in users home directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663841#M49040</link>
      <description>Just came back and looked at this again.  Volker (and Bill) have the answer:  configure rlogin to ignore user .rhosts files (except for superuser).  That way it doesn't matter what the users put in their .rhosts.&lt;BR /&gt;&lt;BR /&gt;Darn good answer.  Never had tried it.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 13 Feb 2002 19:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rhost-file-in-users-home-directories/m-p/2663841#M49040</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-02-13T19:57:13Z</dc:date>
    </item>
  </channel>
</rss>

