0

If I make all folder in the root directory world writable, something like:

sudo chown 777 -R /

Would this enable yum to work without root privileges? If not, is there a way similar to this to make yum work without root? I do realized sudo requires root to begin with, but I have a situation where I'm building something on a system with root and transferring it to another system where I will no longer have root (a singularity container which I'm transferring to a computer cluster).

3
  • sudo chmod -R 777 /bad idea. Aug 7, 2018 at 21:26
  • Is there a chmod variant where I can get yum to work without sudo and not brick the system? Aug 7, 2018 at 21:32
  • 1
    You do not need root complete access, you just need root to setup sudo once to allow some given user to run yum through sudo yum to get root access when running it. Changing permissions on disk as you suggest is the sure direct way to a totally irrecoverable system, not even counting all attacks you open yourself to. Aug 7, 2018 at 22:06

0

You must log in to answer this question.

Browse other questions tagged .