LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ypbind taking port of imaps on reboot. Please help (https://www.linuxquestions.org/questions/linux-server-73/ypbind-taking-port-of-imaps-on-reboot-please-help-749178/)

ravangrid 08-20-2009 10:34 PM

ypbind taking port of imaps on reboot. Please help
 
Dear all,

Upon reboot, ypbind takes the port of imaps. Upon reboot, ypbind starts earlier than imaps. Sometimes ypbind takes 993 and sometimes 995, both cause problems for imaps to start on reboot. My system is RHEL 5. I need both the services to be ON. (I have many other services also running which should be ON, like vsftpd, sshd, nfs, cups, ntpd, httpd, etc. And, SE-Linux has to be in "enforcing" mode.)

I tried the following:

Code:

# service dovecot status

(its not running and stopped)

# netstat -tanp | grep 993
# netstat -tanp | grep 995

(these show that ypbind has taken either of these ports)

# service ypbind stop
# service dovecot start
# chkconfig dovecot on
# service ypbind start
# chkconfig ypbind on

(Now, dovecot first takes its appropriate port. Next, ypbind too takes its appropriate port.)

However, upon reboot, sometimes the problem appears again that imaps is not able to start because its ports is taken (mostly by ypbind).

Please help guys.

---------------------------------------------------------------------

chrism01 08-21-2009 12:26 AM

Lock down the NIS ports: http://www.linuxtopia.org/online_boo...#s1-server-nis Section 42.2.3.4


All times are GMT -5. The time now is 07:06 PM.