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
      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