Solaris Container Manager 1.1 发行说明

usermod 没有为授权的用户更新 /etc/user_attr 文件

安装 Container Manager 的过程中,/etc/user_attr 文件是通过 usermod 命令进行更新的。对于在设置 Container Manager 时输入其用户 ID 的用户而言,如果您尝试修改这些用户的配置文件,则可能会显示如下消息:


UX: /usr/sbin/usermod: ERROR: user_name is in use. Cannot change it.

如果您遇到以下错误之一,请手动更新 /etc/user_attr 文件,以设置正确的配置文件。

在 S10 系统中,/etc/user_attr 文件的内容应与如下内容相似:

username::::auths=auths;profiles=Pool Management,Zone Management,
Project Management,other_profiles;other_attributes

在 S9 系统中,/etc/user_attr 文件的内容应与如下内容相似:

username::::auths=auths;profiles=Pool Management,Project Management,
other_profiles;other_attributes

在 S8 系统中,/etc/user_attr 文件的内容应与如下内容相似:

username::::auths=auths;profiles=Project Management,other_profiles;other_attributes

要检查所需的配置文件是否存在于主机上,请检查 /etc/security/prof_attr 文件的内容。此文件必须包含与操作系统 (OS) 的版本相对应的配置文件。

如果没有包含所需的配置文件,请运行 /opt/SUNWsymon/addons/SCM/sbin/scm-poolprof-script.sh 文件以创建所需的配置文件。其中,/opt 是 Container Manager 所安装到的目录。要运行该脚本,必须将 JAVA_HOME 环境变量设置为 /usr/j2se,或者必须将 Java 安装在 /usr/java 下。