Jump to content
Server Maintenance This Week. ×

Shell script issue with Catalina


This topic is 1549 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

 

 

Screen Shot 2020-01-28 at 23.32.49.png

Edited by john renfrew
  • Thanks 1
Link to comment
Share on other sites

This topic is 1549 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.