| From: | Mark Kirkwood <markir(at)paradise(dot)net(dot)nz> |
|---|---|
| To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
| Cc: | "Brusser, Michael" <Michael(dot)Brusser(at)matrixone(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: ipcclean in 8.1 broken? |
| Date: | 2006-03-02 01:58:42 |
| Message-ID: | 44065152.10700@paradise.net.nz |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Christopher Kings-Lynne wrote:
>> 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.
>
>
> Yes, like the 'toor' account in FreeBSD... (disabled by default though)
>
Might be better to check if uid == 0, however there are some traps here
too as the most convenient methd ('id -u') is not support everywhere
(e.g Solaris 8). I think I used awk or sed on the plain old 'id' output
last time something like this came up.
Cheers
Mark
| From | Date | Subject | |
|---|---|---|---|
| Next Message | John | 2006-03-02 04:13:02 | display processing time? |
| Previous Message | Christopher Kings-Lynne | 2006-03-02 01:29:22 | Re: ipcclean in 8.1 broken? |