Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Login as root
- su -
- #Switch to postgres user
- su postgres
- #Connect to the DB
- psql
- #Create user
- CREATE USER username SUPERUSER INHERIT CREATEDB CREATEROLE;
- #Alter it`s password
- ALTER USER username PASSWORD 'password';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement