linux create user group and grant permissions

Create user:

useradd oracle_user

create password:

passwd oracle_user

Create group:

groupadd oracle_group

Put the user in the specified group:

usermod –g oracle_group oracle_user

Grant root privileges:

Use the vi /etc/sudoers command, enter i, modify the /etc/sudoers file, find the following line, and add a line under root, as shown below:

## Allow root to run any commands anywhere
  root    ALL=(ALL)     ALL
  oracle_user  ALL=(ALL)     ALL

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326399923&siteId=291194637