In main() check that the user is running us as root Signed-off-by: Mark McLoughlin Index: livecd/creator/livecd-creator =================================================================== --- livecd.orig/creator/livecd-creator 2007-03-27 15:01:14.000000000 +0100 +++ livecd.orig/creator/livecd-creator 2007-03-27 15:01:14.000000000 +0100 @@ -810,6 +810,10 @@ def main(): usage(out) return ret + if os.geteuid () != 0: + print >> sys.stderr, "You must run livecd-creator as root" + return 1 + target = InstallationTarget(options.repos, options.packages, options.epackages, --