This is a little bit something a colleague of mine had mentioned about the root account/role.
Upon completing an installation, if you choose not to create a normal user account when being prompted to, root will be configured as a normal account with its appropriate root privileges.
And if you happen to decide to install Solaris 11 with a normal user account when prompted, the root account will be revert to being a role instead of a normal account (with root privileges, of course).
To verify if root is a role instead of a normal account, running the following command would yield an empty output:
# grep root /etc/user_attr
Or rather if you display the content (using cat) of the file /etc/user_attr, it should only display the text below
# 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.
#
If root is indeed a role, you should be able to see the following
# grep root /etc/user_attr
root::::type=role
If root is indeed a role, to revert root to being a normal account, meaning you can login with it:
# rolemod -K type=normal root
To change the account root to being a role
# usermod -K type=role root
To assign any normal account shahmatd with the root role
# usermod -R root shahmatd
No comments:
Post a Comment