sudo su - only works if you added the ALL=ALL line to /etc/sudoers Last line of sudoers file user ALL = (ALL) NOPASSWD: ALL This is not needed though, it will work with "sudo gainroot" also