免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1276 | 回复: 0

请教一下权限的问题~ [复制链接]

论坛徽章:
0
发表于 2011-03-15 12:50 |显示全部楼层
Unable to open connection to supplicant on "/data/system/wpa_supplicant/eth1": Permission denied

提示权限不足

在程序中使用getpid函数获得进程号
提示
pid->2197 ppid->2113 gid->2113

打印进程的信息
Name:        system_server
State:       S (sleeping)
Tgid:        2197
EPid: 2197
PPid:        2113
TracerPid:   0
Uid: 1000    1000    1000    1000
Gid: 1000    1000    1000    1000
FDSize:      256
Groups:      1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 3001 3002 3003

打印目标文件信息
/data/system/wpa_supplicant # ls -l
total 0
srwxrwx---    1 1010     1010             0 Mar 15  2011 eth1

看起来system_server在用户组1010 , eth1文件也属于组用户1010
应该是有足够的权限打开eth1文件的,但是为什么会提示权限不足呢~?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP