Re: User privileges-verification required - Mailing list pgsql-hackers

From Tom Lane
Subject Re: User privileges-verification required
Date
Msg-id 3462.1140796045@sss.pgh.pa.us
Whole thread Raw
In response to Re: User privileges-verification required  ("Nauman Naeem" <nauman.naeem@gmail.com>)
List pgsql-hackers
"Nauman Naeem" <nauman.naeem@gmail.com> writes:
> I tried the single-user mode option and it worked, thanks! but, don't
> you people think that we should provide this privilege in multi-user
> mode as well.In accordence to my second point.

No.  Restricting what a superuser can do is pointless --- he can always
manage to shoot himself in the foot if he tries hard enough.  (Consider
eg "DELETE FROM pg_authid".)  Trying to fix it in the reverse direction
(re-establishing superuser after the last one's been deleted) has
obvious security issues.

The problem comes up sufficiently seldom that the single-user-mode
backdoor seems sufficient.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: textToQualifiedNameList second parameter
Next
From: "Kevin Grittner"
Date:
Subject: Re: fsutil ideas