Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Why must the installer be run as root, exactly?

Discussion in 'Linux' started by markt1964, Sep 17, 2015.

  1. markt1964

    markt1964

    Joined:
    Aug 30, 2011
    Posts:
    83
    Subject line says it all... why is this required?
     
  2. haagch

    haagch

    Joined:
    Nov 9, 2014
    Posts:
    34
  3. markt1964

    markt1964

    Joined:
    Aug 30, 2011
    Posts:
    83
    I know what setting SUID is, but I don't understand why Unity would need to change permissions on another application. I assume by chrome sandbox, it is referring to when things are run from inside of the chrome browser, but if one isn't using that browser in the first place, then what is being accomplished by requiring root, particularly if chrome does not even exist on the computer?

    That said, the linux installer should probably tell the user what, exactly, it needs root for (that is by stating exactly which files it intends to modify), and if the user wants to forgo that step or manage those permissions him or herself, I believe they should be given the option.

    My 2c
     
    Ryiah likes this.
  4. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    Unity ships with its own version of chrome to power the asset store and some of the screens.
     
  5. markt1964

    markt1964

    Joined:
    Aug 30, 2011
    Posts:
    83
    Okay, but I think it should at least be an option in the installer to leave setting SUID on the application up to the end user. Every additional program with SUID on in a unix-like system such as Linux adds an attack vector where certain bugs within it may be exploited by someone else to cause privilege escalation, potentially compromising an otherwise secure system.
     
  6. jcarpenter2

    jcarpenter2

    Joined:
    Mar 5, 2015
    Posts:
    2
    Definitely agree, the installer should be clear about why it "must" be run as root. Putting that blanket statement over the whole installer just to switch chrome's suid shows disregard for security.
     
    Last edited: Jul 1, 2016