文件导入

Solaris 11 su - root

在Solaris11中,root不再作为一个用户,而是成为了角色,
普通用户想要切换到root时,su - ,命令不再可行,如果想要如此
需要修改/etc/user_attr文件
在用户配置行增加 roles=root

比如:
who@solaris11:~$ cat /etc/user_attr
#
# The system provided entries are stored in different files
# under "/etc/user_attr.d". They should not be copied to this file.
#
# Only local changes should be stored in this file.
# This line should be kept in this file or it will be overwritten.
#
root::::type=role
who::::type=normal;lock_after_retries=no;profiles=System Administrator;roles=root

评论