Unix Technical Forum

Editing inetd.conf

This is a discussion on Editing inetd.conf within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hello! I am trying to write a script that will apply security changes to a Solaris system. Things like ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:07 AM
Birdman
 
Posts: n/a
Default Editing inetd.conf

Hello!


I am trying to write a script that will apply security changes
to a Solaris system. Things like MAXAGE PASSLENGTH in
/etc/default/passwd etc.
I need to comment out various services in /etc/inetd.conf. Does anyone
know if there is a command that will turn off a service in inetd.conf?
On AIX there is a command that will do it - /usr/sbin/chsubserver -d
-v echo -p tcp -r inetd for example. If not, does anyone know of a
good way of doing it via a script? sed/awk??

Cheers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:07 AM
Barry Margolin
 
Posts: n/a
Default Re: Editing inetd.conf

In article <f8c5076e.0307100255.3fec5ba7@posting.google.com >,
Birdman <wybird@yahoo.com> wrote:
> I am trying to write a script that will apply security changes
>to a Solaris system. Things like MAXAGE PASSLENGTH in
>/etc/default/passwd etc.
>I need to comment out various services in /etc/inetd.conf. Does anyone
>know if there is a command that will turn off a service in inetd.conf?
>On AIX there is a command that will do it - /usr/sbin/chsubserver -d
>-v echo -p tcp -r inetd for example. If not, does anyone know of a
>good way of doing it via a script? sed/awk??


Use sed or ed in a script, and have it put '#' at the beginning of the
lines that you want to disable. Then send a SIGHUP signal to the inetd
process to make it reread it.

--
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:07 AM
Alan Coopersmith
 
Posts: n/a
Default Re: Editing inetd.conf

wybird@yahoo.com (Birdman) writes in comp.sys.sun.admin:
| I am trying to write a script that will apply security changes
|to a Solaris system. Things like MAXAGE PASSLENGTH in
|/etc/default/passwd etc.

Have you looked at http://wwws.sun.com/software/security/jass to make
sure you're not reinventing that particular wheel?

--
__________________________________________________ ______________________
Alan Coopersmith alanc@alum.calberkeley.org
http://www.CSUA.Berkeley.EDU/~alanc/ aka: Alan.Coopersmith@Sun.COM
Working for, but definitely not speaking for, Sun Microsystems, Inc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com