Ubuntu: uh I can edit a config file I made

I switch distros and using a flavor of ubuntu at the moment. One of the first things I do is disable mouse acceleration but now I can freely edit it without sudo…

What have I done:

I made:
usr/share/x11/xorg.conf.d/90-mouse.conf

inside mouse config:
Section "InputClass"
Identifier "mouse"
MatchIsPointer "on"
Option “AccelerationProfile” "-1"
Option “AccelerationScheme” "none"
EndSection

reboot and no mouse acceleration Great!
But now I can open and edit usr/share/x11/xorg.conf.d/90-mouse.conf without permission, I cannot do this for the other configs in the directory… so uhh how do I fix this?

just need to set the permissions of the file

what does ls -l of usr/share/x11/xorg.conf.d/ show

-rw-rw-r-- 1 b121nrhg21kf0 b121nrhg21kf0 90-mouse.conf
the rest are root root

By the way b121nrhg21kf0 is the user name.

what is the output of some of the others?

-rw-r–r-- 1 root root 92 Jul 7 00:10 10-amdgpu.conf

chmod 644 90-mouse.conf
chown root:root 90-mouse.conf

check out #ult if you want to check out more of the file permissions and what not

3 Likes

Nice! thanks. Relinquishing permissions in linux always feels good. Can’t say the same for windows.

2 Likes

np

have fun and enjoy