3

I really screwed up and did

sudo chmod -R 777 /etc

After searching for hours for an answer I eventually booted into recovery mode and did:

mount -o rw,remount /  # because the file-system was mounted as read-only
chmod 0440 /etc/sudoers
chmod 0440 /etc/sudoers.d/README
chmod 0700 /var/lib/sudo

I am now able to login, but not as my user, but "I have no name!". I also get an error if I try to do anything:

bash: /etc/profile: Permission denied

Ubuntu is installed on a seperate SSD and I have 5 hard drives in RAID 5. I am afraid to not being able to remount the RAID array if i reinstall Ubuntu. And to connect a CD drive I have to disconnect one of the hard drives and I am really afraid of losing data. Is there something I can do?

0 Answers0