I tried running sudo -i
but not working keeps saying :-
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=@.host --user to connect to bus of other user.
Here is the message i receive after the prompt
Please help thanks :)
/root/.bashrc
or/root/.profile
? – steeldriver Jan 28 '24 at 02:21/root/.bashrc
or/root/.profile
please teach me how to. – Joseph Jan 28 '24 at 02:56/etc/{prof,bash}*
? You can also try resetting your root user withsudo bash -c 'mv /root /root.bak; mkdir /root; chmod 700 /root'
– Daniel T Jan 28 '24 at 03:22/etc/{prof,bash}*
it was denied and the other commandsudo bash -c 'mv /root /root.bak; mkdir /root; chmod 700 /root'
couldn´t fix it. – Joseph Jan 28 '24 at 03:35sudo -i
shouldn't require connecting to the user systemd instance. The "quick solution" part of the top answer there somewhat introduces a security hazard. I don't think it's related. – Daniel T Jan 28 '24 at 09:07