[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT:postgres user to beging using PostgreSQL?



Daniel de los Reyes wrote:
  >Sorry for this off topic.
  >I just installed Postgresql on a Potato box. I am trying to create new users
      > 
  >but I get errors saying that the user I am using is not present in pg_shadow
      >. 
  >Docs say only user present there by default is user postgres. Should I be 
  >logged in with user postgres to be able to create users? How do I know it's 
  >password?
 
Yes, you have to be user postgres to create other users.

Become postgres thus:

$ su
# su - postgres

Or give it a password (su -c "passwd postgres") and login to it directly.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "And if thy hand offend thee, cut it off; it is better 
      for thee to enter into life maimed, than having two 
      hands to go into hell, into the fire that never shall 
      be quenched."                Mark 9:43 




Reply to: