- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How should i disable rsh remote shell in Hpux
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
06-26-2018 06:14 AM
06-26-2018 06:14 AM
How should i disable rsh remote shell in Hpux
I am trying to comment the remsh line in /etc/inetd.conf like #/usr/bin/remsh
And then i tried rsh its connecting because that is restricted shell.
Eventhough am commenting in /inetd.conf its connecting the remote connection.So how to avoid remote shell connection.
And what is the relation between rsh and remsh.
Becasue after disabling in inetd.conf also its connecting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2018 02:09 AM
07-02-2018 02:09 AM
Re: How should i disable rsh remote shell in Hpux
Please read the man pages for remsh, remshd and rsh.
From the remshd(1M) man page, it seems that you might need to comment out 2 lines in inetd.conf, one beginning with "shell" and the other with "kshell". After this, I suspect you would have to restart inetd, like
/sbin/init.d/inetd stop /sbin/init.d/inetd start
On HP-UX, "rsh" is "restricted shell" and "remsh" is "remote shell". On other UNIXes, "rsh" is "remote shell". Otherwise, rsh is not related to remsh.
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2018 06:38 AM
07-02-2018 06:38 AM
Re: How should i disable rsh remote shell in Hpux
To disable all r* commands in HP-UX you must comment out these 3 lines in the /etc/inetd.conf:
login stream tcp nowait root /usr/lbin/rlogind rlogind -B /etc/issue
shell stream tcp nowait root /usr/lbin/remshd remshd
exec stream tcp nowait root /usr/lbin/rexecd rexecd
Once you have done that you can force inetd to reread the /etc/inetd.conf configuration file by issuing the command:
# inetd -c