From: | "Brusser, Michael" <Michael(dot)Brusser(at)matrixone(dot)com> |
---|---|
To: | "Peter Eisentraut" <peter_e(at)gmx(dot)net>, <pgsql-hackers(at)postgresql(dot)org> |
Cc: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
Subject: | Re: ipcclean in 8.1 broken? |
Date: | 2006-03-01 14:39:58 |
Message-ID: | DAF7A2046DD4A24F8F77B086F840BF1903EC5374@msx11am.matrixone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I wonder if there could be a potential problem with using this approach
-
checking on $USER == root.
Although it is a common practice, I think a superuser does not have to
be root.
If I'm right here, a better technique could be executing `id`.
Mike
-----Original Message-----
From: pgsql-hackers-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Peter
Eisentraut
Sent: Wednesday, March 01, 2006 6:49 AM
To: pgsql-hackers(at)postgresql(dot)org
Cc: Christopher Kings-Lynne
Subject: Re: [HACKERS] ipcclean in 8.1 broken?
Am Dienstag, 28. Februar 2006 07:42 schrieb Christopher Kings-Lynne:
> I just tried using ipcclean in 8.1.3. It doesn't work when I su to
the
> pgsql user. This part of the script:
>
> if [ "$USER" = 'root' -o "$LOGNAME" = 'root' ]
>
> Always fails because even tho $USER is set to 'pgsql' when su'ed,
> $LOGNAME is still root.
>
> This is on FreeBSD 4.9
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2006-03-01 15:26:20 | Re: Reg:lo_open error..pls help me |
Previous Message | James_Hughes | 2006-03-01 13:39:45 | Re: Initdb on Windows 2003 |