手机版
你好,游客 登录 注册
背景:
阅读新闻

CentOS6.5 上 DHCP 不能启动 Can't chown new lease file: Operation not permitted

[日期:2015-02-06] 来源:Linux社区  作者:kongxx [字体:大 中 小]

在 CentOS6.5 上装了 DHCP 配置好之后,用 "sudo service dhcpd start" 启动报错,但是用 "sudo dhcp" 可以启动,然后查看 "/var/log/messages" 文件

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 dhcphost 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 on the release available
Feb  3 09:12:32 dhcphost dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  3 09:12:32 dhcphost dhcpd: have been made to the base software release in order to make
Feb  3 09:12:32 dhcphost dhcpd: it work better with this distribution.
Feb  3 09:12:32 dhcphost dhcpd:
Feb  3 09:12:32 dhcphost dhcpd: Please report for 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.

其中这一行引起注意

Feb  3 09:12:32 dhcphost dhcpd: Can't chown new lease file: Operation not permitted

于是检查 /etc/rc.d/init.d/dhcpd 文件,发现其中有如下两行定义了启动dhcp的user和group

user=dhcpd

group=dhcpd

想到上面提到的用 "sudo service dhcpd start" 不能启动而用 "sudo dhcp" 可以启动,想到可能是用户权限问题,于是把这两个参数修改为:

user=root

group=root

然后再使用 "sudo service dhcpd start" 启动DHCP,问题解决。

Linux系统下构建DHCP服务器 http://www.linuxidc.com/Linux/2013-06/86531.htm

CentOS下配置主从DNS服务器以及DHCP下的DDNS http://www.linuxidc.com/Linux/2013-06/85634.htm

SUSE Linux 11 pxe+DHCP+tftp+ftp 无人值守安装 http://www.linuxidc.com/Linux/2013-06/85481.htm

Linux下架设DHCP服务器过程及3种测试 http://www.linuxidc.com/Linux/2013-05/84832.htm

Linux上一步一步实现DHCP服务器 http://www.linuxidc.com/Linux/2013-04/82244.htm

CentOS 6.5系统下构建DHCP服务器 http://www.linuxidc.com/Linux/2014-06/103203.htm

Linux下DHCP服务器的搭建(RHEL5.2) http://www.linuxidc.com/Linux/2014-11/108899.htm

更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-02/112985.htm

linux
相关资讯       DHCP  DHCP不能启动 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款