Re: problem startting postgresql

Started by suresh sover 23 years ago3 messagesgeneral
Jump to latest
#1suresh s
sureshatwork@yahoo.com

hi ,

i created user using adduser even though i could
not start postgresql
Adduser created a postgres user account,
may be this will do i have to try

Adding the postgres User
------------------------
$ su - -c "useradd postgres"

but i have small doubt what is the difference between

$ adduser postgres
and
$ su - -c "useradd postgres"

thanking u

suresh s

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

#2Oliver Elphick
olly@lfix.co.uk
In reply to: suresh s (#1)

but i have small doubt what is the difference between

$ adduser postgres
and
$ su - -c "useradd postgres"

The first ought to fail because a non-superuser should not have the
ability to add new users to the system. (The $ prompt indicates that you
are not a superuser.) If it worked, your system would be completely
insecure.

The second becomes superuser before trying to add the new user.

Perhaps you need to do a basic Unix course...

--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Behold, happy is the man whom God correcteth.
Therefore despise thou not the chastening of the
Almighty." Job 5:17

#3suresh s
sureshatwork@yahoo.com
In reply to: Oliver Elphick (#2)
problem startting postgresql

Hi Oliver,

/etc/rc.d/init.d/postgresql start

says that user postgres does not exists,

even though i added user postgres using

su - -c "adduser postgres"

what may be the reasion

Thanking u

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com