哦,不好意思,可能还有点差别。
我机器上装的是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.