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

    OSX Unix Using Brew to install software remotely

    Scheduled Pinned Locked Moved IT Discussion
    brewosxappleapple remote desktopunix
    20 Posts 3 Posters 1.7k Views
    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.
    • scottalanmillerS
      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

      DustinB3403D 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        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
        • DustinB3403D
          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).

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            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?

            DustinB3403D 1 Reply Last reply Reply Quote 0
            • DustinB3403D
              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
              • scottalanmillerS
                scottalanmiller
                last edited by

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

                DustinB3403D 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Try that as root, that might work.

                  1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    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.

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      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.

                      scottalanmillerS 1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        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.

                        DustinB3403D 1 Reply Last reply Reply Quote 0
                        • DustinB3403D
                          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.

                            DustinB3403D 1 Reply Last reply Reply Quote 0
                            • DustinB3403D
                              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
                              • scottalanmillerS
                                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.

                                DustinB3403D 1 Reply Last reply Reply Quote 0
                                • DustinB3403D
                                  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