Assume root user by default.
authorMati Aharoni (Kali Linux Developer) <muts@kali.org>
Wed, 20 Mar 2013 20:46:07 +0000 (16:46 -0400)
committerMati Aharoni (Kali Linux Developer) <muts@kali.org>
Wed, 20 Mar 2013 20:46:07 +0000 (16:46 -0400)
debian/patches/assume-root [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/assume-root b/debian/patches/assume-root
new file mode 100644 (file)
index 0000000..846fdae
--- /dev/null
@@ -0,0 +1,18 @@
+Assume root user by default
+Index: inguma/lib/ui/main.py
+===================================================================
+--- inguma.orig/lib/ui/main.py 2013-03-20 16:43:40.307647351 -0400
++++ inguma/lib/ui/main.py      2013-03-20 16:43:59.539250819 -0400
+@@ -26,9 +26,9 @@
+     # Need root for most modules, so...
+     if os.geteuid() != 0:
+         print "You must be root to run most of the modules."
+-        answer = raw_input("Do you want to continue [y/N]? ")
+-        if answer.lower() != 'y':
+-            sys.exit(1)
++#        answer = raw_input("Do you want to continue [y/N]? ")
++#        if answer.lower() != 'y':
++#            sys.exit(1)
+ # Perform the GTK UI dependency check here
+ from . import dependencyCheck
index e69de29..4cb7621 100644 (file)
@@ -0,0 +1 @@
+assume-root