Problems started as soon as I tried to run sudo x
Complained about ownership - checked and /etc/sudo.conf had was owned by the first non-root user created, not root. Also didn't have setuid.
Fixed that by mounting the disk file in another linux vm, now the same with /etc/sudoers. Fixed that, then the same with /usr/bin/sudo. Fixed that... done? No, now /usr/libexec/sudo/sudoers.so needs fixing.
The disk it was taken from - never actually used the root pw, so don't know what it is, but now can't sudo from inside its vm, so it's back and forth to the other vm with the disk file mounted there.
First, any clue how this happened? Second, anyone know what commands to run while mounting this vm disk from another vm to go through and fix all the permissions?
Thanks for helping the noob sysadmin
Complained about ownership - checked and /etc/sudo.conf had was owned by the first non-root user created, not root. Also didn't have setuid.
Fixed that by mounting the disk file in another linux vm, now the same with /etc/sudoers. Fixed that, then the same with /usr/bin/sudo. Fixed that... done? No, now /usr/libexec/sudo/sudoers.so needs fixing.
The disk it was taken from - never actually used the root pw, so don't know what it is, but now can't sudo from inside its vm, so it's back and forth to the other vm with the disk file mounted there.
First, any clue how this happened? Second, anyone know what commands to run while mounting this vm disk from another vm to go through and fix all the permissions?
Thanks for helping the noob sysadmin