CentOS6.5 DHCP cannot start can ' t chown new lease File:operation not permitted

Source: Internet
Author: User
Tags ldap

After CentOS6.5 has DHCP configured, start the error with "sudo service dhcpd start", but use "sudo DHCP" to start, and then view the "/var/log/messages" file

Feb 3 09:12:32 dhcphost dhcpd:internet Systems Consortium DHCP Server 4.1.1-p1 Feb 3 09:12:32 dhcphost dhcpd:copyright
2004-2010 Internet Systems Consortium.
Feb 3 09:12:32 dhcphost dhcpd:all rights reserved. Feb 3 09:12:32 dhcphost dhcpd:for info, please visit Https://www.isc.org/software/dhcp/Feb 3 09:12:32 dhcphost dhcpd: Not searching LDAP since Ldap-server, Ldap-port and LDAP-BASE-DN were not specified in the config file Feb 3 09:12:32  Phost Dhcpd:can ' t chown new lease File:operation not permitted Feb 3 09:12:32 dhcphost dhcpd:feb 3 09:12:32 dhcphost  Dhcpd:this version of ISC DHCP is based in the release available Feb 3 09:12:32 dhcphost dhcpd:on. Features have been added and other changes Feb 3 09:12:32 dhcphost Dhcpd:have been made to the base software
Order to make Feb 3 09:12:32 dhcphost dhcpd:it work and this better. Feb 3 09:12:32 dhcphost dhcpd:feb 3 09:12:32 dhcphost dhcpd:please to this software Via the CentOS Bugs Database:feb 3 09:12:32 dhcphost dhcpd:http://bugs.centos.org/feb 3 09:12:32 dhcphost dhcpd: Feb 3 09:12:32 dhcphost dhcpd:exiting.

One of the lines drew attention.

Feb  3 09:12:32 dhcphost dhcpd:can ' t chown new lease File:operation not permitted

So check the/ETC/RC.D/INIT.D/DHCPD file and find that there are two lines that define the user and group that started DHCP

USER=DHCPD
GROUP=DHCPD

Think of the above mentioned "sudo service dhcpd start" can not start with "sudo dhcp" to start, think of the possibility of user rights issues, and then modify these two parameters to:

User=root
Group=root

Then use "sudo service dhcpd start" to start DHCP and solve the problem.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.