xinxinhao 发表于 2012-12-13 12:09

感觉solaris11某些命令方面不够完善

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来打印。感觉很悲惨.

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

爱上猫的鱼二 发表于 2012-12-13 14:43

顶   :lol:lol:lol:lol:lol:lol:lol

非凡公子 发表于 2012-12-16 14:47

1./etc/user_attr.d下不是有么?

FlyInSunShine 发表于 2012-12-18 15:41

1、有文件可以看,也能直接该文件
2、要考虑系统的前后兼容问题,用roleadd难道不好么?
3、没看懂
4、route show可以看的吧

xinxinhao 发表于 2012-12-19 17:07

回复 4# FlyInSunShine


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

FlyInSunShine 发表于 2012-12-20 19:20

本帖最后由 FlyInSunShine 于 2012-12-20 19:21 编辑

回复 5# xinxinhao

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

用于管理用户和组帐户的命令行工具
http://docs.oracle.com/cd/E26926_01/html/E25812/userconcept-11111.html#scrolltoc

roleadd用法概要
http://docs.oracle.com/cd/E26926_01/html/E29115/roleadd-1m.html#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_01/html/821-1473/user-attr-4.html#REFMAN4user-attr-4

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

其中:
route
- manually manipulate the routing tables

用法概要
route [-fnvq] sub-command [ args]
route [-fnvq] [-p [-R root-dir]] add | delete destination gateway
route [-fnvq] change | get destination   ]
route [-fn] monitor
route [-fnvq] flush
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。

咱纯粹自己玩,希望各位交流的时候最好把问题能说的更清楚点。
页: [1]
查看完整版本: 感觉solaris11某些命令方面不够完善