This topic may be misleading. Let me clarify. I need to enable HDMI on my new raspberry Pi 4 (I am a new user to pi). This is accomplished by changing one line in /boot/config.txt. This is posted in another thread.
However, it would appear that I need to login as root. The forum is circular in that it suggests I need to change /etc/ssh/sshconfig file to allow root login. BUT
I cannot change either of these files, and save the changes unless I am logged in as root. Unlike linux boxes I have used in the past (it's been a few years so you know, so maybe I am misremembering) root login on the pi is disabled by default, and the HDMI (which by the way is the ONLY video out) is also disabled by default. There does not seem to be a way to log in as root, as it is disallowed.
What to do?
Now you say "How did you set the pi up in the first place?" Which is a good question. I installed the OS a total of 11 times, until I got it right. I did this by editing the necessary config files when I installed the OS on the pi, now that it's set up, it seems to have reverted with a hashtag, commenting out the HDMI line in boot config. I have since added (remotely) software and such on my pi, and I really do not want to reinstall and spend hours on something I should have access to right now. I find it stupid that it comes out of the box like this.