유저 추가
superuser로 진행
# 유저추가
sudo adduser lms
# 데이터베이스 유저 추가
sudo -i -u postgres
createuser --interactive
Enter name of role to add: lms
Shall the new role be a superuser? (y/n)
# 데이터베이스 유저 디폴트 데이터베이스 추가
createdb lms
# 신규 추가된 DB유저 비밀번호 초기화
psql
postgres=# ALTER USER lms PASSWORD 'myPassword';
# 접속 테스트
su lms
psql
lms=# \conninfo
lms=# \q