When trying to run a script on an Ubuntu server I get the following error "not allowed to execute logged off".  I tested after logging on via ssh to the remote machine and the script runs no problem.  

I have the script set to run as a defined user, is there anyway to no have to manually log to initiate a script?

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

I am pretty certain the run as function does not work in a Linux or Mac script.  In Linux, scripts run as root, so you would have to change your command to specify a user.

You may be able to use sudo to specify a user if the user is in the sudoers file:  http://manpages.ubuntu.com/manpages/intrepid/man8/sudo.8.html

Answered 09/30/2013 by: jknox
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity