免费注册 查看新帖 |

Chinaunix

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

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

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

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

论坛徽章:
0
3 [报告]
发表于 2006-09-05 16:03 |只看该作者
原帖由 solaris study 于 2006-9-5 15:50 发表
你得命令是对得。 你得用户是root吗? 尝试su - root



谢谢了,兄弟, 我的确是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也不能改的了。

# ndd /dev/eri \?

打此命令试试,看link_mode后面是不是read only ?

论坛徽章:
0
5 [报告]
发表于 2006-09-06 00:11 |只看该作者
原帖由 Philmoon 于 2006-9-5 19:50 发表
link_mode这个参数的属性本身是只读的,当然root也不能改的了。

# ndd /dev/eri \?

打此命令试试,看link_mode后面是不是read only ?



如果是 read only   该怎么改啊  只能改文件重启系统?

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
6 [报告]
发表于 2006-09-06 00:28 |只看该作者
sun的网卡都是自适应的,没必要去改。建议顺线路检查一下它连接的对方设备。否则link_mode没理由=0

可读写的参数还有这些,具体意义man ndd一下看看吧:
adv_autoneg_cap (read and write)
adv_100T4_cap (read and write)
adv_100fdx_cap (read and write)
adv_100hdx_cap (read and write)
adv_10fdx_cap (read and write)
adv_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改了.修改了哪些参数我不太清楚. 希望有朋友能说的详细一点.
# ndd /dev/eri \?
?                             (read only)
transceiver_inuse             (read only)
link_status                   (read only)
link_speed                    (read only)
link_mode                     (read only)
ipg1                          (read and write)
ipg2                          (read and write)
use_int_xcvr                  (read and write)
pace_size                     (read and write)
adv_autoneg_cap               (read and write)
adv_100T4_cap                 (read and write)
adv_100fdx_cap                (read and write)
adv_100hdx_cap                (read and write)
adv_10fdx_cap                 (read and write)
adv_10hdx_cap                 (read and write)
autoneg_cap                   (read only)
100T4_cap                     (read only)
100fdx_cap                    (read only)
100hdx_cap                    (read only)
10fdx_cap                     (read only)
10hdx_cap                     (read only)
lp_autoneg_cap                (read only)
lp_100T4_cap                  (read only)
lp_100fdx_cap                 (read only)
lp_100hdx_cap                 (read only)
lp_10fdx_cap                  (read only)
lp_10hdx_cap                  (read only)
instance                      (read and write)
lance_mode                    (read and write)
ipg0                          (read and write)
intr_blank_time               (read and write)
intr_blank_packets            (read and write)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP