root/scripts/admin/bien_user_create @ 213
1 | 194 | aaronmk | #!/bin/sh
|
---|---|---|---|
2 | selfDir="$(dirname -- "$0")" |
||
3 | |||
4 | . "$selfDir/../util/vegbien_dest.sh" |
||
5 | |||
6 | 201 | aaronmk | echo "At prompt \"Password:\", enter *your* password for sudo" >&2 |
7 | sudo -v |
||
8 | 194 | aaronmk | |
9 | 201 | aaronmk | echo "At prompt \"Enter password for new role:\", enter $out_password" >&2 |
10 | 194 | aaronmk | sudo -u postgres createuser --no-superuser --no-createdb --no-createrole \ |
11 | --pwprompt "$@" "$out_user" |