1834089 Members
2386 Online
110063 Solutions
New Discussion

Re: Disable rexec

 
SOLVED
Go to solution
kaushikbr
Frequent Advisor

Disable rexec

Hi,

Is it possible to disable all remote shell commands on HP-UX. Disable rcp,remsh etc.
And enable these when required.

Thanks and regards
Kaushik
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Disable rexec

Hi,
modify the inetd.conf and re-start inetd.
See:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=866233

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
kaushikbr
Frequent Advisor

Re: Disable rexec

Hi Peter,

Thank you very much for you response.
By doing the recomended changes to the inetd.conf file, I'm able to disable the rcp,remsh commands.

I have commented the following lines from the /etc/inetd.conf file to disable rcp,remsh & rlogin command. Do you see any impact on the system by disabling these services in terms of service guard operation etc ?

login stream tcp6 nowait root /usr/lbin/rlogind rlogind -l
shell stream tcp6 nowait root /usr/lbin/remshd remshd -l
exec stream tcp6 nowait root /usr/lbin/rexecd rexecd


Thanks and regards
Kaushik
Peter Godron
Honored Contributor
Solution

Re: Disable rexec

Peter Godron
Honored Contributor

Re: Disable rexec

Hi,
are you happy with the last answer I gave ?

Could you please complete the thread by awarding points to helpful answers and summarising the solution for you.

This will help resolution of similar problems in the future.