Comment 0 for bug 2003004

Revision history for this message
Robert Hardy (rhardy) wrote :

Despite this similar to an old bug 1625119 I asked on #ubuntu whether I should go for a new bug and was directed to file this as a new bug.

I have an Asus NVidia RTX 3060. I am running:
Description: Ubuntu 22.04.1 LTS
Release: 22.04

a supported release, and found a solution on that release.

I am using a fully patched system with nvidia-settings 510.47.03-0ubuntu1.

I expected, when running as root, when I clicked on the button to write out the settings I just configured in nvidia-settings to /etc/X11/xorg.conf for that to work. It does not with permission denied.

It needs to be able to write /etc/X11/xorg.conf when running as root when the user requests it.
Attempting to run nvidia-settings as root it cannot write to that configuration file.

I tracked this down to a missing permission on /usr/share/screen-resolution-extra/nvidia-polkit which was 644 on my system.

The following change fixed this for me: chmod u+x /usr/share/screen-resolution-extra/nvidia-polkit
I found many users online with similar issues in forums.

Please update the package to implement the equivalent and close this.

FYI end user configuration without root has improved significantly since 16.04 such that it would be reasonable in my honest opinion to close 1625119 as fixed in 22.04 once this is done. It is also reasonable from my point of view for security reasons to need root to change such a critical file as /etc/X11/xorg.conf.