我要评分
获取效率
正确性
完整性
易理解

Creating a User Group and a User

In a server environment, independent users are assigned to each process to implement permission isolation for security purposes.

The user created in this step will be used in 1. The user name mysql and user group name mysql are used as examples in the following operations. Use actual names based on your requirements.

  1. Create a user group mysql and user mysql.
    1
    2
    groupadd mysql
    useradd -g mysql mysql
    
  2. Set the password for user mysql. Enter the same password twice as prompted.
    1
    passwd mysql