LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2009, 10:37 PM   #1
ravangrid
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
ypbind taking port of imaps on reboot. Please help guys~


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.

---------------------------------------------------------------------
 
Old 08-20-2009, 10:45 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
check you /etc/sysconfig/network and /etc/yp.conf and look to see what YP is binding to? You can also check the /var/log/dmesg log which could give you some more information about boot time.
 
Old 08-20-2009, 11:59 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Lock down the NIS ports; Section 5.3.4 http://www.linuxtopia.org/online_boo...#s1-server-nis
 
Old 08-24-2009, 09:37 PM   #4
ravangrid
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Dear Friends,

Thanks a lot for your help.
I am not proficient in port binding. So, I did the following:

# chkconfig ypbind off

and in /etc/rc.local file, I made this entry:

service ypbind start

So the service ypbind does not start upon reboot. Imaps starts earlier and takes appropriate port. Then ypbind starts at last.

Thanks to jstephens84 and chrism01.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ypbind taking port of imaps on reboot. Please help ravangrid Linux - Server 1 08-21-2009 12:26 AM
ypbind palisetty_suman Linux - Newbie 6 04-08-2009 04:20 PM
BlackBerry and IMAPS ddaas Linux - Networking 0 11-10-2005 08:59 AM
Imaps ajaye1971 Linux - Newbie 1 09-09-2005 02:37 PM
SPOP3 and IMAPS hypernetics Linux - Security 1 10-17-2003 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration