0

I need some help to write a specific bash script to fix the permission problems that prevent my ubuntu 20.10 from booting properly. Basically this script should :

  1. remove the +x permission from each file that shouldn't has it,for example each *.conf file. I'm sure that there are much more files that shouldn't have it,but at the moment I'm not sure which ones. I'm sure that you know it better than me.

  2. import the right permissions from a new and working installation of ubuntu 20.10 to the broken one,for the files which have the same name.

thanks.

Marietto
  • 635
  • 4
  • 13
  • 40

1 Answers1

3

Backup up the data you are concerned about and wipe the system, you have successfully killed it. It will take some effort to get done, many, many times the effort of a re-install. Do the new install and copy over the files wanted from the old. Problem is solved in very little time compared to probably days getting a script figured out, if every getting it correct.