Jump to content
Server Maintenance This Week. ×

Authentication of scheduled system-level shell script


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

Recommended Posts

I have a shell script that I want to run as a scheduled system-level script on FMS 19 on Linux. When I call the script from a Terminal it works as expected. But when I try to run it as a scheduled script I get "Error    732    my-server.com    Schedule "myScript" aborted; invalid account name or password."

  • It's in the correct FMS Scripts directory
  • I'm trying to run it as the default user "fmserver"
  • The file is owned by fmserver
  • file permission is 755

What am I missing here? Am I expected to authenticate in the script? If so, which credentials? The ones I use to authenticate when I use fmsadmin commands in the CLI?

Thanks in advance!

-Kent

Update 6/18/20121

I tried this:

  1. Added a system user to the host, set the password and made it a member of the "fmsadmin" group
  2. Made the new user the owner of the shell script file
  3. Verified file permissions were correct
  4. Modified the /etc/sudoers file as instructed here under Notes section.
  5. Entered the new user's credentials in the FMS admin console (tried as just the user name, then tried as [email protected])

I'm still seeing authentication errors in the FMS Event.log that are preventing the script to run.

When I try to run it as just the username I get "Warning 522     my-host.com  SECURITY: Administrator authentication failed: "myNewUser [10.0.0.137]" (fmsadmin)"

When I try to run it as  [email protected] I get "Error 732     my-host.com Schedule:my schedule aborted; invalid account name or password"

 

Edited by Kent Searight
update
Link to comment
Share on other sites

This topic is 1057 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.