I am trying to start firefox from terminal using this command sudo /usr/bin/firefox
. The problem is that it won't open firefox returning me this error:
mkdir: cannot create directory '/run/user/0': Permission denied
Authorization required, but no authorization protocol specified
Error: cannot open display: :0
Does anyone know how I can fix this? Thank you.
firefox
. If you have been running graphical software as root you may have much deeper problems with permissions. – ChanganAuto Aug 15 '22 at 16:37