#CentOS 7.0 create openadmin and grant administrator privileges
创建新用户并赋予Admin权限
[root@localhost ~]$ adduser -G root -c "openstack admin" openadmin
[root@localhost ~]$ echo "p@ssw0rd" | passwd --stdin openadmin
Changing password for user openadmin.
passwd: all authentication tokens updated successfully.
[root@localhost ~]$ visudo
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
openadmin ALL=(ALL) ALL
## Allows people in group wheel to run all commands
wheel ALL=(ALL) ALL
[root@localhost ~]$ usermod -aG wheel openadmin
[root@localhost ~]$ su - openadmin
DONE