On Thu, 2003-01-16 at 12:00, james.oden@xxxxxxxxxxx wrote: > > > > What is the appropriate way to change xinetd settings in the %post > section of the ks.cfg file? I've tried many things and can't seem to make > it work. I'm > currently executing: > > > > %post -nochroot > > /sbin/chkconfig -level 345 telnet on > > > > I get errors with "no such file or directory". Any help is appreciated. > > chkconfig only makes changes to things that have rc scripts in /etc/init.d. > Configs for xinetd live in /etc/xinetd.d. > You must edit these with something like sed. Also, you don't want > -nochroot, as you will probably want to change > the Xinetd settings in the chrooted environment. > This is not true, you can use chkconfig for xinetd as well (run chkconfig --list and you will see the xinetd services listed at the bottom), but since xinetd doesn't do levels, the --level option won't work. So there are actually at least 5 things wrong with the %post snippet here: 1) shouldn't be running chkconfig in a nochroot environment 2) the nochroot option is --nochroot, not -nochroot 3) telnetd is an xinetd service and doesn't use levels 4) the level option is --level, not -level 5) don't appear to have the telnet-server package installed (hence no such file or directory error) -- Jason Kohles jkohles@xxxxxxxxxx Senior Engineer Red Hat Professional Consulting