Dec. 7, 2004
10:52 p.m.
On Tue, Dec 07, 2004 at 02:54:50PM +0000, Michael Hudson wrote:
Is that really the best way to check for root? It may be, I guess, but I'd have expected os.geteuid() to be more reliable...
Ah yes, I suppose it is. I'll change it tomorrow night if no Unix-guru steps up with an alternative solution.
Or is it os.getuid()? I always get confused by these functions...
Based on my reading of the difference between geteuid and getuid, I'd go for geteuid. Cheers, Johannes