X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fnew_security_install.py;h=24e89b923e72e667bf0cf398e4ac5c8ecec1d3d6;hb=0dada7c5846e0ae676bbe0b81c1065fe75ca9b86;hp=fec030b7d15fce6a484d41e2516126c9373ff54c;hpb=307823ca2367f65ccfbbc7c0bd5054f2883b9c9c;p=dak.git diff --git a/dak/new_security_install.py b/dak/new_security_install.py index fec030b7..24e89b92 100755 --- a/dak/new_security_install.py +++ b/dak/new_security_install.py @@ -60,9 +60,7 @@ def init(): Options = Cnf.SubTree("Security-Install::Options") - whoami = os.getuid() - whoamifull = pwd.getpwuid(whoami) - username = whoamifull[0] + username = utils.getusername() if username != "dak": print "Non-dak user: %s" % username Options["Sudo"] = "y"