Create a user
For enterprise users, when deploying seekdb, it is recommended to use the admin user, or you can use other users. However, the user must have sudo privileges and be the owner of database-related directories. This topic describes how to create a regular user and set sudo privileges for the regular user.
-
Run the following commands to create the user group admin and create the user admin.
[root@test001 ~]# useradd -U admin -d /home/admin -s /bin/bash
[root@test001 ~]# chown -R admin:admin /home/admin -
Run the following command to set a password for the admin account.
[root@test001 ~]# passwd admin -
Set sudo privileges for the admin account.
Run the following command to open the
/etc/sudoersfile:[root@test001 ~]# vim /etc/sudoersAdd the following content at the end of the
/etc/sudoersfile:## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
admin ALL=(ALL) NOPASSWD: ALL