免费注册 查看新帖 |

Chinaunix

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

感觉solaris11某些命令方面不够完善 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-12-13 12:09 |只看该作者 |倒序浏览
solaris 用了1到2年感觉不错, 现在在virtual box 下搞了 solaris11 ,开始很不习惯,现在好多了,集成度很高,确实很优美和先进。

现在用了几个星期,感觉也习惯了, 但是发现好多命令不够完善
1.roles. 我想看系统所有的roles ,却没有命令可以看,文件中也看不到
2.useradd 的时候不能指定role,晕
3.root@solaris:/etc# svcadm refresh name-service/switch
svcadm: Unexpected libscf error on line 332: server has insufficient resources.
4.route是管理路由的命令,可是 route 命令本身无法打印路由信息,只靠netstat -r来打印。感觉很悲惨.

还有好多其他的,,,,,

论坛徽章:
0
2 [报告]
发表于 2012-12-13 14:43 |只看该作者
顶   lollollol

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2012-12-16 14:47 |只看该作者
1./etc/user_attr.d下不是有么?

论坛徽章:
0
4 [报告]
发表于 2012-12-18 15:41 |只看该作者
1、有文件可以看,也能直接该文件
2、要考虑系统的前后兼容问题,用roleadd难道不好么?
3、没看懂
4、route show可以看的吧

论坛徽章:
0
5 [报告]
发表于 2012-12-19 17:07 |只看该作者
回复 4# FlyInSunShine


    大哥,你用过没的 ?感觉你是根据solaris10来说的, solaris11 完全不同的概念.  

论坛徽章:
0
6 [报告]
发表于 2012-12-20 19:20 |只看该作者
本帖最后由 FlyInSunShine 于 2012-12-20 19:21 编辑

回复 5# xinxinhao

哦,不好意思,可能还有点差别。
我机器上装的是OpenIndiana,但是内容我是对着Oracle的手册搞的。
个人感觉您好像没有看手册。

用于管理用户和组帐户的命令行工具
http://docs.oracle.com/cd/E26926 ... 1111.html#scrolltoc

roleadd用法概要
http://docs.oracle.com/cd/E26926 ... #REFMAN1Mroleadd-1m
其中:
roleadd adds a role entry to the passwd and shadow and user_attr databases specified by the -S option. The default repository is files. The -A and -P options respectively assign authorizations and profiles to the role. Roles cannot be assigned to other roles. The -K option adds a key=value pair to user_attr for a role. Multiple key=value pairs can be added with multiple -K options.

roleadd also creates supplementary group memberships for the role (-G option) and creates the home directory (-m option) for the role if requested. The new role account remains locked until the passwd(1) command is executed.

Specifying roleadd -D with the -g, -b, -f, -e, or -K option (or any combination of these option) sets the default values for the respective fields. See the -D option. Subsequent roleadd commands without the -D option use these arguments.


user_attr手册页
http://docs.oracle.com/cd/E23824 ... #REFMAN4user-attr-4

~~
route手册页
http://docs.oracle.com/cd/E26926 ... e-1m.html#scrolltoc

其中:
route
- manually manipulate the routing tables

用法概要
route [-fnvq] sub-command [ [modifiers] args]
route [-fnvq] [-p [-R root-dir]] add | delete [modifiers] destination gateway  [args]
route [-fnvq] change | get [modifiers] destination   [gateway [args]]
route [-fn] monitor [modifiers]
route [-fnvq] flush [modifiers]
route -p [-R root-dir] show

Subcommands
The following subcommands are supported:

add
Add a route.

change
Change aspects of a route (such as its gateway).

delete
Delete a specific route.

flush
Remove all gateway entries from the routing table.

get
Look up and display the route for a destination.

monitor
Continuously report any changes to the routing information base, routing lookup misses, or suspected network partitionings.

show
Display the list of routes to be applied at system startup. Can be used only in conjunction with the -p option.


==============

Solaris 10 我用到SUN的最后一版,Oracle发布的目前还真没碰过。
再就是OpenSolaris和OpenIndiana。

咱纯粹自己玩,希望各位交流的时候最好把问题能说的更清楚点。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP