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. User groups and users are created for the OS, not for the database.
The user created in this step will be used in 1.
- Create a postgres user (and a user group).
1 2
groupadd postgres useradd -g postgres postgres
- Set the password of the postgres user. Enter the same password twice as prompted.
1passwd postgres
Parent topic: Configuring the Installation Environment