I copied my default config file to my ~/.config directory and then gave myself ownership of that file not realizing that it would give my user root permissions system wide without having to type my password for sudo. I don't like that and want to go back to having a regular user account. Here is the command I used to copy the file and change permissions:
cp -rv /etc/libvirt/libvirt.conf ~/.config/libvirt/ &&sudo chown $dino:$dino ~/.config/libvirt/libvirt.conf
dino
is my user and I guess I accidentally typed it for my group as well.
Is there a way to fix this?
~/.config/libvirt/libvirt.conf
. What does it say? (Anyway, that confuses me; maybe I'm too old school, but I thought/etc/sudoers
was the only way to give someone passwordless sudo privs.$dino
is an undefined variable, it expands to the NULL string, "". You did&& sudo chown : ~/.config/libvirt/libvirt.conf
. Look atls -l ~/.config/libvirt/libvirt.conf
- it's probably owned byroot:root
. To fix:sudo chown $(id -u):$(id -g) ~/.config/libvirt/libvirt.conf
.