Re: real and effective user ids must match

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: real and effective user ids must match
Дата
Msg-id 20060915043123.GA1845@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: real and effective user ids must match  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: real and effective user ids must match  (Jeff Frost <jeff@frostconsultingllc.com>)
Re: real and effective user ids must match  (david.lao@sharpasia.com.mo)
Список pgsql-admin
On Fri, Sep 15, 2006 at 11:56:18AM +0800, david.lao@sharpasia.com.mo wrote:
> su -l postgres -s /bin/sh -c id output:
> uid=0(root) gid=26 euid=26(postgres) groups=26

I don't have a Linux box to test but that output isn't what I'd
expect, and it's not what I get with the equivalent commands on
Solaris and FreeBSD.  The above output shows that the real uid and
effective uid are different, which is what the postmaster is
complaining about.  I'd expect them to be the same: both postgres.
Can anybody else with a Linux box test the above command?

Do you have sudo?  If so then what does "sudo -u postgres id" show?
If uid and euid are the same (both postgres) then you might be able
to start the postmaster with sudo instead of su.

> >When was the last time you successfully started the postmaster the
> >same way you're trying now?  How long had you been running PostgreSQL
> >without any problems?  If it used to work then something has changed.
>
> I am running Redhat 8, it is same way to start the postgres
> "/etc/rc.d/init.d/postgresql start", I running postgre about
> 2 years ago, maybe it is the hacker do it, because before I
> found one unknown user and delect it, and then I restart the
> service with error.

What do you mean by "the hacker"?  Do you know or suspect that
you've been hacked?  If so then I'd recommend that you reinstall
your system from trustworthy media, make sure you have current
security patches, and close any configuration holes that might have
let an intruder in.

--
Michael Fuhr

В списке pgsql-admin по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: real and effective user ids must match
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: real and effective user ids must match