use sudoedit in Whonix documentation and Whonix software

sudoedit (mentioned here, here) doesn’t seem to work.

edit: this issue only happens if an instance of Mousepad is already open

When running sudoedit /etc/systemcheck.d/50_user.conf, it opens a temporary file in Mousepad (50_userXXXXXXXX.conf where X’s are random characters), but never saves it back to /etc/systemcheck.d/. If there is no existing /etc/systemcheck.d/50_user.conf, it doesn’t create one, and if it does exist, it doesn’t update the file when saving.

This is on Whonix-Workstation-Xfce and Whonix-Gateway-Xfce 17.2.8.5

This is the terminal output right when running the command (it shows 50_user.conf unchanged and then a newline at the same time that Mousepad opens the file, before any edits can even be made):

[workstation user ~]% sudoedit /etc/systemcheck.d/50_user.conf
sudoedit: /etc/systemcheck.d/50_user.conf unchanged
[workstation user ~]% 
2 Likes

This issue is probably reproducible on Debian or even on any Linux distribution.

Could you try to reproduce on Debian and report a bug against sudo please?

Meanwhile, not much we can do about this except document it.

1 Like

I don’t have another Debian distro to test on at the moment, but I updated the template and the Open File with Root Rights wiki page.

3 Likes