ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    OSX Unix Using Brew to install software remotely

    IT Discussion
    brew osx apple apple remote desktop unix
    3
    20
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DustinB3403 @scottalanmiller
      last edited by

      @scottalanmiller said in OSX Unix Using Brew to install software remotely:

      Do you have sudo set up?

      As in a separately installed package or just with a user who has sudo access?

      S 1 Reply Last reply Reply Quote 0
      • S
        scottalanmiller @DustinB3403
        last edited by

        @DustinB3403 said in OSX Unix Using Brew to install software remotely:

        @scottalanmiller said in OSX Unix Using Brew to install software remotely:

        Do you have sudo set up?

        As in a separately installed package or just with a user who has sudo access?

        A user that has sudo set up and working.

        https://support.apple.com/en-us/HT202035

        D 1 Reply Last reply Reply Quote 0
        • S
          scottalanmiller
          last edited by

          You could also enable the root user, but not recommended.

          https://support.apple.com/en-us/HT204012

          1 Reply Last reply Reply Quote 0
          • D
            DustinB3403 @scottalanmiller
            last edited by DustinB3403

            @scottalanmiller said in OSX Unix Using Brew to install software remotely:

            @DustinB3403 said in OSX Unix Using Brew to install software remotely:

            @scottalanmiller said in OSX Unix Using Brew to install software remotely:

            Do you have sudo set up?

            As in a separately installed package or just with a user who has sudo access?

            A user that has sudo set up and working.

            https://support.apple.com/en-us/HT202035

            Yes this works.

            It's also how I'm able to do things like update (stuff that was installed with Brew remotely).

            S 1 Reply Last reply Reply Quote 0
            • S
              scottalanmiller @DustinB3403
              last edited by

              @DustinB3403 said in OSX Unix Using Brew to install software remotely:

              @scottalanmiller said in OSX Unix Using Brew to install software remotely:

              @DustinB3403 said in OSX Unix Using Brew to install software remotely:

              @scottalanmiller said in OSX Unix Using Brew to install software remotely:

              Do you have sudo set up?

              As in a separately installed package or just with a user who has sudo access?

              A user that has sudo set up and working.

              https://support.apple.com/en-us/HT202035

              Yes this works.

              It's also how I'm able to do things like update (stuff that was installed with Brew remotely).

              But it doesn't work for a brew install of something else?

              D 1 Reply Last reply Reply Quote 0
              • D
                DustinB3403 @scottalanmiller
                last edited by DustinB3403

                @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                @DustinB3403 said in OSX Unix Using Brew to install software remotely:

                @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                @DustinB3403 said in OSX Unix Using Brew to install software remotely:

                @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                Do you have sudo set up?

                As in a separately installed package or just with a user who has sudo access?

                A user that has sudo set up and working.

                https://support.apple.com/en-us/HT202035

                Yes this works.

                It's also how I'm able to do things like update (stuff that was installed with Brew remotely).

                But it doesn't work for a brew install of something else?

                Brew install only appears to work, when run from the console.

                I'm trying to get it to work so I can install software remotely. Updating things works fine, but not the installation of software.

                1 Reply Last reply Reply Quote 0
                • S
                  scottalanmiller
                  last edited by

                  Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?

                  D 1 Reply Last reply Reply Quote 0
                  • S
                    scottalanmiller
                    last edited by

                    Try that as root, that might work.

                    1 Reply Last reply Reply Quote 0
                    • D
                      DustinB3403 @scottalanmiller
                      last edited by

                      @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                      Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?

                      OSX doesn't honor sudo, as root is disabled. Yes I could enable it. But I'd really rather not.

                      I can run pretty much anything, as copying an App to a users application folder as our admin user account without issue.

                      But If I wanted to install an App via the CLI is where I'm having issue.

                      S 1 Reply Last reply Reply Quote 0
                      • D
                        DustinB3403
                        last edited by DustinB3403

                        So I can just unpack the dmg file, and have an Copy job, copy the application to the Applications folder for any user. As my admin user account. All via Apple Remote Desktop.

                        This works without issue.

                        What I am trying to do is avoid having to locally download the app at all, unpack it and then have a Copy job to run. I'd like to streamline the process.

                        S 1 Reply Last reply Reply Quote 1
                        • S
                          scottalanmiller @DustinB3403
                          last edited by

                          @DustinB3403 said in OSX Unix Using Brew to install software remotely:

                          @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                          Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?

                          OSX doesn't honor sudo, as root is disabled. Yes I could enable it. But I'd really rather not.

                          I can run pretty much anything, as copying an App to a users application folder as our admin user account without issue.

                          But If I wanted to install an App via the CLI is where I'm having issue.

                          I have a guess that the Brew installer does something that breaks sudo for the script as a whole and is the source of the issue.

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            DustinB3403 @scottalanmiller
                            last edited by

                            @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                            @DustinB3403 said in OSX Unix Using Brew to install software remotely:

                            @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                            Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?

                            OSX doesn't honor sudo, as root is disabled. Yes I could enable it. But I'd really rather not.

                            I can run pretty much anything, as copying an App to a users application folder as our admin user account without issue.

                            But If I wanted to install an App via the CLI is where I'm having issue.

                            I have a guess that the Brew installer does something that breaks sudo for the script as a whole and is the source of the issue.

                            Well maybe?

                            In order to install locally with brew though I have to:

                            Terminal -> su <admin-user> -> <password> then I can run /usr/local/bin/brew <cask maybe if needed> application-name

                            I'm trying to find a way to pass the credentials remotely for the first 3 steps.

                            1 Reply Last reply Reply Quote 0
                            • M
                              marcinozga
                              last edited by marcinozga

                              Use ansible to install packages with brew. I'm curious, which formula requires user password? It's uncommon for cask packages, and really unheard of for plain brew packages. Perhaps report a bug to brew team.

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                DustinB3403 @marcinozga
                                last edited by

                                @marcinozga said in OSX Unix Using Brew to install software remotely:

                                Use ansible to install packages with brew. I'm curious, which recipe requires user password? It's uncommon for cask packages, and really unheard of for plain brew packages. Perhaps report a bug to brew team.

                                It's required when being run remotely over unix from apple remote desktop.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  scottalanmiller @DustinB3403
                                  last edited by

                                  @DustinB3403 said in OSX Unix Using Brew to install software remotely:

                                  So I can just unpack the dmg file, and have an Copy job, copy the application to the Applications folder for any user. As my admin user account. All via Apple Remote Desktop.

                                  This works without issue.

                                  What I am trying to do is avoid having to locally download the app at all, unpack it and then have a Copy job to run. I'd like to streamline the process.

                                  That's what the script is doing already. Making your own "sudo friendly" script for your install might make sense.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    DustinB3403 @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in OSX Unix Using Brew to install software remotely:

                                    @DustinB3403 said in OSX Unix Using Brew to install software remotely:

                                    So I can just unpack the dmg file, and have an Copy job, copy the application to the Applications folder for any user. As my admin user account. All via Apple Remote Desktop.

                                    This works without issue.

                                    What I am trying to do is avoid having to locally download the app at all, unpack it and then have a Copy job to run. I'd like to streamline the process.

                                    That's what the script is doing already. Making your own "sudo friendly" script for your install might make sense.

                                    The issue is there is no way AFAIK without adding my local admin account to this group.

                                    Which is more work than it may be worth since the existing solution works but is annoying.

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post