1.4.6.1 Manual add database user

New users can be created via CLI or with SQL statements. This manual uses the CLI tool. There is no difference between database actions or CLI command, createuser is just a wrapper around the SQL command CREATE ROLE.

example output

root@satnms7-dev:~# su - postgres
postgres@satnms7-dev:~$ pwd
/var/lib/postgresql
postgres@satnms7-dev:~$ createuser --interactive --pwprompt
Enter name of role to add: satnms
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n