stop rsh in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris stop rsh in solaris
# 1  
Old 09-02-2007
stop rsh in solaris

dear all

Please suggest how to stop rsh on Solaris 10

Thanks
murad jaber
# 2  
Old 09-02-2007
Remove it from /etc/inetd.conf.

Then restart inetd i.e.

kill -HUP pid

where pid is the inetd daemon's process id.
# 3  
Old 09-03-2007
You may want to look at either svcadm or inetadm commands in solaris 10.

Quote:
Service Management Facility

The Service Management Facility was introduced in Solaris 9 as an alternative way to manage services. In Solaris 10, SMF has been made the default way to manage most services. The SMF framework has significant advantages over the legacy SVR4 mechanisms, primarily in terms of service monitoring and integration with the Fault Management Facility.
Basic Commands

The basic commands for managing services under SMF (Service Management Facility) control are svcs, svccfg and svcadm. The man pages for these commands are a good source of detailed information.

inetadm can be used to monitor services under inetd control.

Many commands require referencing the service identifier, also known as an FMRI.
svcs

* svcs -a: Lists all services currently installed, including their state.
* svcs -d FMRI: Lists dependencies for FMRI.
* svcs -D FMRI: Lists dependents for FMRI.
* svcs -l FMRI: Provides a long listing of information about FMRI; includes dependency information
* svcs -p FMRI: Shows relationships between services and processes.
* svcs -t: This change is temporary (does not persist past a boot).
* svcs -x: Explains why a service is not available.
* svcs -xv: Verbose debugging information.

svcadm

* svcadm clear FMRI: Clear faults for FMRI.
* svcadm disable FMRI: Disable FMRI.
* svcadm enable FMRI: Enable FMRI.
* svcadm refresh FMRI: Force FMRI to read config file.
* svcadm restart FMRI: Restart FMRI.

To make configuration changes to a non-inetd service, edit the configuration file, then enter the svcadm restart command.
svccfg

* svccfg: Enter interactive mode.
* svccfg -s FMRI setenv ENV_VARIABLE value: Set an environment variable for FMRI. Follow by svcadm refresh and restart commands.

inetadm

* inetadm -l FMRI: Displays properties for FMRI.
* inetadm -m FMRI property_name=value: Set a property for FMRI.

In particular, the "exec" value for an inetd-controlled service is the command line executed for that service by SMF. It may be desirable, for example, to change this value to add logging or other command-line flags.

To convert an inetd.conf file to SMF format, run the command:
inetconv -i /etc/inet/inetd.conf
from Princeton's Solaris Service Management Facility
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

rsh logs in Solaris

Hi we run rsh (password-less) among solaris 9/10 boxes very frequently and would like to know if there exist any logs which will capture either login session or the commands run (using rsh) or with any other info. TIA Reddy (0 Replies)
Discussion started by: reddyr
0 Replies

2. Solaris

How to stop samba on solaris 10?

Hello to everybody from Argentina. I need to stop samba because i need to fsck a filesystem How can i do this? I presume that the version is higher than 3.0. /usr/sfw/sbin/smbd -D This is the out of ps -ef | grep smbd. Thank you very much for your time i am a litle lost. The... (4 Replies)
Discussion started by: enkei17
4 Replies

3. UNIX for Dummies Questions & Answers

vxWorks connection to solaris 9.0 rsh vs ftp problem

Can anyone point me in the right direction.. I have a test system which requires vxWorks to be loaded via TCPIP I am using a Sun ultra10 box with Sol 9.0 installed as the server I have configured the server and am able to load the boot image without any problems. I assume it is using the... (0 Replies)
Discussion started by: shortsrkt
0 Replies

4. Solaris

Unable to execute commands using rsh in Solaris 9 and 10.

Unable to execute commands using rsh in Solaris 9 and 10. When I execute this command " rsh -n 172.16.67.91 ls -l " I am getting this error message. ::ffff:172.16.67.91: Connection refused Please guide me how to enable rsh. Thanks & Regards Durgaprasad (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

5. Solaris

solaris 8/9 sendmail stop

Hi All, I need to stop sendmail from running on boot-up. How can I do this on Solaris 8 and 9 sparc? Please help and that you in advance. (2 Replies)
Discussion started by: itik
2 Replies

6. Solaris

Stop DHCP in Solaris 10

Can any one tell me how to stop DHCP service on Solaris 10 so that it should not start nextime when the system is rebooted. (2 Replies)
Discussion started by: shabu
2 Replies

7. UNIX for Dummies Questions & Answers

RSH, Solaris and AIX

All, I have two AIX 5.3 systems that needs to run rsh commands on a Solaris 8 system, and one is failing. One, xx402 is a dedicated machine, and the other, xx452 is a virtual one on (via VIO). The xx402 has no problem with the rsh commands but I keep getting "Permission Denied" when the... (5 Replies)
Discussion started by: kjbaumann
5 Replies

8. Solaris

how to stop rsh on solaris 10

Hi Guys, Please suggest how to stop rsh on Solaris 10 Thanks Manu (1 Reply)
Discussion started by: b_manu78
1 Replies

9. UNIX for Dummies Questions & Answers

How to enable rsh on Solaris 5.9 and Tru64 4F

Hi everyone, I'n new on this... And I don't have experience. I need to know how to enable rsh between solaris and tru64. I don't know what i need to modify or install. I really don't have idea. If somebody has documentation about this, or has a procedure to do this. I really will... (1 Reply)
Discussion started by: cm247a
1 Replies

10. UNIX for Advanced & Expert Users

rsh in crontab for solaris 7

I am putting a shell script in cron of root for solaris 7 server . This shell script runs rsh commands within the script. The result is the shell script does not run in cron. The cron syntax is perfect. When I run stand alone manually it works fine.I undesrstand I need to initialize everything... (6 Replies)
Discussion started by: Hitesh Shah
6 Replies
Login or Register to Ask a Question