yyp1226887462 / mentohust

Automatically exported from code.google.com/p/mentohust
0 stars 0 forks source link

解除文件限制后认证出现无法获取IP #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
我sudo chmod u+s 
/usr/bin/mentohust之后普通用户运行mentohust出现以下提示:

欢迎使用MentoHUST   版本: 0.3.4
Copyright (C) 2009-2010 HustMoon Studio
人到华中大,有甜亦有辣。明德厚学地,求是创新家。
Bug report to http://code.google.com/p/mentohust/issues/list

>> 已发送退出信号给MentoHUST进程(PID=21581).
>> 认证已退出。
ding@ding-desktop:~$ menthust
menthust:找不到命令
ding@ding-desktop:~$ mentohust

欢迎使用MentoHUST   版本: 0.3.4
Copyright (C) 2009-2010 HustMoon Studio
人到华中大,有甜亦有辣。明德厚学地,求是创新家。
Bug report to http://code.google.com/p/mentohust/issues/list

** 用户名:   2009051100
** 网卡:  eth0
** 认证超时:    8秒
** 心跳间隔:    30秒
** 失败等待:    15秒
** 允许失败:    8次
** 组播地址:    标准
** DHCP方式:  认证后
** 通知超时:    5秒
** DHCP脚本:  dhclient
** 本机MAC:   00:e0:b0:f4:08:b1
** 使用IP:    172.16.16.173
** 子网掩码:    255.255.252.0
>> 寻找服务器...
** 认证MAC:   00:1a:a9:1a:3f:4e
>> 发送用户名...
>> 发送密码...
** 客户端版本: 3.95
** MD5种子:   4b:50:5a:1b:d9:c5:fd:1d:40:4e:6c:a4:ac:be:91:a8
!! 缺少8021x.exe信息,客户端校验无法继续!
>> 认证成功!
>> 正在获取IP...
There is already a pid file /var/run/dhclient.pid with pid 21604
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Listening on LPF/eth0/00:e0:b0:f4:08:b1
Sending on   LPF/eth0/00:e0:b0:f4:08:b1
Sending on   Socket/fallback
DHCPREQUEST of 172.16.16.173 on eth0 to 255.255.255.255 port 67
DHCPACK of 172.16.16.173 from 10.0.34.19
mv: cannot move `/etc/samba/dhcp.conf.new' to `/etc/samba/dhcp.conf': 
Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFNETMASK: Permission denied
SIOCSIFBRDADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCADDRT: Operation not permitted

求解

Original issue reported on code.google.com by ytong...@gmail.com on 15 Jan 2011 at 3:40

GoogleCodeExporter commented 8 years ago
用户权限不够啊。sudo mentuhust

Original comment by munengga...@gmail.com on 13 Jun 2011 at 9:04

GoogleCodeExporter commented 8 years ago
dhclient也要root权限才能更新ip
要么用sudo运行mentohust
要么sudo chmod u+s /sbin/dhclient试试

Original comment by www.eh...@gmail.com on 25 Jun 2011 at 10:54

GoogleCodeExporter commented 8 years ago
谢谢楼上,真的是sudo u+s /sbin/dhclient 
之后就可以了,现在上网就方便了

Original comment by ytong...@gmail.com on 30 Jun 2011 at 3:23

GoogleCodeExporter commented 8 years ago
额,又不行了,刚才是注销就可以,重启就又不行了,奇怪��
�dhclient,不会也是调用什么吧

Original comment by ytong...@gmail.com on 30 Jun 2011 at 6:37