On 2021-05-19 06:30 AM, Hans wrote:
Am Mittwoch, 19. Mai 2021, 00:26:18 CEST schrieb Steve Dondley:
I believe, there is no easy way. However, if interested, I can send you
my
list of permissions of /var and /usr. These are not changed by me with
one
exception (/var/log/motion/motion.log, as there is a bug).
Please send me your private mailadress when interested, I do not want
to send
the files into the list here (minimzing possible readers).
Maybe somone has the same idea and can create a script to set
permissions from
an untouched folder to another folder. Dunno, if this is possible at
all.
Thanks for the offer. However, I fixed the problem by doing:
"sudo find /usr -perm g=s" and sudo "find /usr -perm u=s" on a known
good install similar to my broken machine.
Then I manually changed permissions on the broken machine. It didn't
take too long and I could be sure things didn't get too badly screwed up
by doing it manually. There was only about a dozen or so
directories/files that needed to be changed.