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 _______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com