OSX Unix Using Brew to install software remotely
-
Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?
-
Try that as root, that might work.
-
@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.
-
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.
-
@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.
-
@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.
-
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.
-
@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.
-
@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.
-
@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.