I tried to execute pantheon-file as root for a programm that I intalled it. I wrote in terminal "sudo pantheon-files" and nothing. Later I searched references before to asked here, but only I found blogs, notes wrote in 2008, 2016 and finally I created and added the files scratch-openasroot.contract and folder-openasroot.contract in /usr/share/contractor without success. How Can I open my files and directories as root? Help me please D: Thanks so much!
I am not sure why you are not getting the "Open New Window as Administrator" option when you right click the dock icon - works fine for me. I assume you have administrator rights? You can try opening a terminal and typing
io.elementary.files-pkexec. This will open an authentication dialog where you can enter your admin password. If it fails you should at least get some more information from the dialog or from the terminal. Files intentionally prohibits using
sudo as it is less secure.