免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3870 | 回复: 7
打印 上一主题 下一主题

root 账户用ndd修改网卡双工模式,却被系统告知,没有权限 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-05 15:43 |只看该作者 |倒序浏览
# ndd -get /dev/eri link_mode \r\n0\r\n# ndd /dev/eri link_mode 1\r\noperation failed, Invalid argument\r\n# ndd -set /dev/eri link_mode 1\r\noperation failed, Permission denied\r\n# \r\n有朋友遇见过这种情况吗?是我的命令使用不对?

论坛徽章:
0
2 [报告]
发表于 2006-09-05 15:50 |只看该作者
你得命令是对得。 你得用户是root吗? 尝试su - root

论坛徽章:
0
3 [报告]
发表于 2006-09-05 16:03 |只看该作者
原帖由 solaris study 于 2006-9-5 15:50 发表\r\n你得命令是对得。 你得用户是root吗? 尝试su - root
\r\n\r\n\r\n谢谢了,兄弟, 我的确是root账号,  不过我们的系统安装了CA 公司的seos软件.我使用/usr/seos/bin/sesu来变成root的, 我估计我的这个root账号某些功能被seos系统屏蔽了.再次感谢!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
4 [报告]
发表于 2006-09-05 19:50 |只看该作者
link_mode这个参数的属性本身是只读的,当然root也不能改的了。\r\n\r\n# ndd /dev/eri \\?\r\n\r\n打此命令试试,看link_mode后面是不是read only ?

论坛徽章:
0
5 [报告]
发表于 2006-09-06 00:11 |只看该作者
原帖由 Philmoon 于 2006-9-5 19:50 发表\r\nlink_mode这个参数的属性本身是只读的,当然root也不能改的了。\r\n\r\n# ndd /dev/eri \\?\r\n\r\n打此命令试试,看link_mode后面是不是read only ?
\r\n\r\n\r\n如果是 read only   该怎么改啊  只能改文件重启系统?

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
6 [报告]
发表于 2006-09-06 00:28 |只看该作者
sun的网卡都是自适应的,没必要去改。建议顺线路检查一下它连接的对方设备。否则link_mode没理由=0\r\n\r\n可读写的参数还有这些,具体意义man ndd一下看看吧:\r\nadv_autoneg_cap (read and write)\r\nadv_100T4_cap (read and write)\r\nadv_100fdx_cap (read and write)\r\nadv_100hdx_cap (read and write)\r\nadv_10fdx_cap (read and write)\r\nadv_10hdx_cap (read and write)

论坛徽章:
0
7 [报告]
发表于 2006-09-06 08:33 |只看该作者
先用ndd看一下read only的是不能修改的.把其他的半双工的参数都改成0就可以了。

论坛徽章:
0
8 [报告]
发表于 2006-09-06 10:01 |只看该作者
谢谢大家的回复,.的确是read only, 现在已经被远程的help desk改了.修改了哪些参数我不太清楚. 希望有朋友能说的详细一点.\r\n# ndd /dev/eri \\?\r\n?                             (read only)\r\ntransceiver_inuse             (read only)\r\nlink_status                   (read only)\r\nlink_speed                    (read only)\r\nlink_mode                     (read only)\r\nipg1                          (read and write)\r\nipg2                          (read and write)\r\nuse_int_xcvr                  (read and write)\r\npace_size                     (read and write)\r\nadv_autoneg_cap               (read and write)\r\nadv_100T4_cap                 (read and write)\r\nadv_100fdx_cap                (read and write)\r\nadv_100hdx_cap                (read and write)\r\nadv_10fdx_cap                 (read and write)\r\nadv_10hdx_cap                 (read and write)\r\nautoneg_cap                   (read only)\r\n100T4_cap                     (read only)\r\n100fdx_cap                    (read only)\r\n100hdx_cap                    (read only)\r\n10fdx_cap                     (read only)\r\n10hdx_cap                     (read only)\r\nlp_autoneg_cap                (read only)\r\nlp_100T4_cap                  (read only)\r\nlp_100fdx_cap                 (read only)\r\nlp_100hdx_cap                 (read only)\r\nlp_10fdx_cap                  (read only)\r\nlp_10hdx_cap                  (read only)\r\ninstance                      (read and write)\r\nlance_mode                    (read and write)\r\nipg0                          (read and write)\r\nintr_blank_time               (read and write)\r\nintr_blank_packets            (read and write)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP