Computing.Net > Forums > Solaris > Question about /etc/services

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Question about /etc/services

Reply to Message Icon

Name: cyan
Date: March 8, 2002 at 20:45:52 Pacific
Comment:

After make changes in /etc/services, how to make it take effective without booting the system?

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Mark M
Date: March 10, 2002 at 14:28:32 Pacific
Reply:

1) Login as root
2) /etc/init.d/inetsvc stop
wait a few secs then...
3) /etc/init.d/inetsvc start

Should be sorted. Hope this helps.


0

Response Number 2
Name: cyan
Date: March 10, 2002 at 19:35:33 Pacific
Reply:

Thank you very much, Mark.

It works! But I have more questions. :)

If I want to do the same on aix and linux machine, what commands should I use?

Sorry for asking non-solaris related questions.


0

Response Number 3
Name: Mark M
Date: March 10, 2002 at 21:16:52 Pacific
Reply:

On other systems it's pretty much a case of killing and restarting inetd. on Solaris you need to run inetd -s (which is in the inetsvc file).

As far as I'm aware on AIX etc you should just be able to find the PID of inetd, kill it, and then restart it again, I know this works on Linux fine.

also:
kill -HUP inetd
might work on some of these other flavours.
(although I stand to be corrected).

Hope this is useful! :o)



0

Response Number 4
Name: Mark M
Date: March 10, 2002 at 21:18:31 Pacific
Reply:

Oh, by the way, regarding services file, if you're just trying to disable stuff like telnet and so on you may want to do this in the /etc/inetd.conf file instead of services... just a neater way of doing it.

Although I assume you're remapping ports or something similar.

Cheers

Mark


0

Response Number 5
Name: cyan
Date: March 11, 2002 at 12:05:29 Pacific
Reply:

Mark, thanks again.

I posted a related question in linux forum. Could you please go to there?

Thanks so much.


0

Related Posts

See More



Response Number 6
Name: Satch Nanda
Date: April 19, 2002 at 07:17:20 Pacific
Reply:

Is there a maximum number a service can have in /etc/services? I thought it was 32676 on older versions of Solaris. Does the 64 bit architecture allow for twice that maximum?

Thanks.

Satch Nanda


0

Response Number 7
Name: Christine
Date: June 20, 2002 at 00:06:00 Pacific
Reply:

On AIX you would use:
refresh -s inetd


0

Sponsored Link
Ads by Google
Reply to Message Icon

Sys admin in .pdf SunOS 1.x



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Question about /etc/services

questions-IP Filter Based FW HOWTO www.computing.net/answers/solaris/questionsip-filter-based-fw-howto/2719.html

Question about mount/umount www.computing.net/answers/solaris/question-about-mountumount/1344.html

some question about tcp_wrapper www.computing.net/answers/solaris/some-question-about-tcpwrapper/3025.html