January 28, 20205 yr 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???
January 28, 20205 yr Author 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, 20205 yr by john renfrew
January 29, 20205 yr In Catalina the default shell is now zsh not sure if that may alter paths or require changes to original script.
Create an account or sign in to comment