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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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. |
| ||||
| 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. |