john renfrew Posted January 28, 2020 Posted January 28, 2020 Have copied a shell script which works in other settings onto a new machine Changes paths - it zips a backup folder and does a ditto command to copy as a zip file to an external drive I worked out that I needed to change the sudoers file to allow no password access to the script. Running the shell script in terminal was requiring a password, now it doesn't Added the fmserver user to that too. If I run the sh script from the admin console as fmserver it fails straight away, if I run it as the local user with its password it appears to run but in fact times out with a fail message, both of which are about invalid account name or password The script is working fine when run through terminal, doe not require password, just not when triggered from console. Does anyone have any light to shine on this???
john renfrew Posted January 28, 2020 Author Posted January 28, 2020 (edited) OK answering own question make the shell script executable then go to the System Setting and grant explicit access to two things to give the script access to write over to external hard drive, bash and fmserver_helperd Edited January 29, 2020 by john renfrew 1
Ocean West Posted January 29, 2020 Posted January 29, 2020 In Catalina the default shell is now zsh not sure if that may alter paths or require changes to original script.
Recommended Posts
This topic is 2012 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now