(self)
return False
Set configure running as normal user or as root via --fakeroot
Set configure running as normal user or as root via --fakeroot
Set configure running as normal user or as root via -- fakeroot
def _run_as_root(self):
        """Set configure running as normal user or as root via --fakeroot
        """
        username = HostInfo().username()
        if "user" in self.opt:
            if self.opt["user"] == username:
                return False

            if self.opt["user"] != "root" and self.opt["uid"] != '0':
                Msg().out("Warning: running as another user not supported")
                return False

            if self._has_option("--fakeroot", "exec"):
                if (NixAuthentication().user_in_subuid(username) and
                        NixAuthentication().user_in_subgid(username)):
                    Config.conf['singularity_options'].extend(["--fakeroot", ])
                    return True

        self.opt["user"] = username
        return False
def _run_as_root ( self ) : username = HostInfo ( ) . username ( ) if "user" in self . opt : if self . opt [ "user" ] == username : return False if self . opt [ "user" ] != "root" and self . opt [ "uid" ] != '0' : Msg ( ) . out ( "Warning: running as another user not supported" ) return False if self . _has_option ( "--fakeroot" , "exec" ) : if ( NixAuthentication ( ) . user_in_subuid ( username ) and NixAuthentication ( ) . user_in_subgid ( username ) ) : Config . conf [ 'singularity_options' ] . extend ( [ "--fakeroot" , ] ) return True self . opt [ "user" ] = username return False