Post not yet marked as solved
For an IT department initiative, we have to remotely remove admin rights from a subset of M1 Macbook Air users. Their computers were set up manually with one original admin user account.
After much research and testing, the admin rights removal portion of our scripting is working except for the original admin user account. A few niche online resources indicated this might possibly be due to M1's having a new type of user account called an owner. I also read that any secondary accounts after the initial one should have access to the OIK and OIC so we're confused why admin rights aren't getting removed from that original user when it works on other secondary accounts in multiple ways of testing.
Any ideas or context surrounding this elusive new owner type of account, why the working script won't remove admin rights from that account but will for others, or if there's some missing info in order to accomplish this goal? We ideally would like to add an IT managed admin user and remove admin from the original user (current MDM does not support his inherently so we're getting creative.)
Post not yet marked as solved
I created a VENV.Even though I hardcoded in JSON files the path and deleted in the gut the path for python of my venv.still my systems default python keeps running.I am stuck I cannot get my venv python to run even though It says on vs code in the bottom that it is selected.Kindly help.
Post not yet marked as solved
My tags are Zsh and Command Line Tools
I don't know if either of those apply to what is happening to me.
I have a script which is all the files in my app, for each there's a code sign command in this script. I run the script, and what is happening, according to what it shows in Terminal, it is not finishing the first command, it is starting the second command in the path section of the first, first just cuts off and second begins right there, no return
So naturally it finds a syntax error in the text eventually, none of the commands are run, it just prints the text of the script to screen with the commands merged as I said.
If I copy the commands out of the script one by one and run them in Terminal they run each just fine.
I did chmod 777 Path on the script file. I was told I have to do that to make it able to be run in Termimal.
Those all there is to this. I can't run a perfectly fine script. It checks out in Text and Pages, show invisibles, there are none that are not meant to be there, only spaces and a return at the end of each command.
Why would commands that work singly, not work in a script that is being run simply by dragging it to terminal, the path is typed, the hit return
I am new to this area, I program in a high level language, I only know it, I don't know what most coders know about Terminal and things like privileges, and many things. I only know Omnis.
Thank you.
Das Goravani
Post not yet marked as solved
As soon it finish installing every thing gets deleted. Removes everything. Any solution???
Also, when i try to list the file terminal always display:
jrkhatri@Jyotis-MacBook-Pro ~ % ls
zsh: killed ls
Any solutions??
Post not yet marked as solved
I want to install an update of my cocoa application in an unattended manner(silent intallation) where user will not be doing any interaction on the mac installer app.
Through terminal it can be achieved using
sudo installer -package /Users/username/Downloads/MyPackage.pkg -target /Applications/
But sudo will require password.
Can it be done through a shell script? without passwords?