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