Subject: | |
From: | |
Reply To: | |
Date: | Fri, 5 Apr 2024 08:40:19 -0400 |
Content-Type: | multipart/mixed |
Parts/Attachments: |
|
|
On Thu, 4 Apr 2024 18:36:32 +0000
> From: Reggie Monroe <[log in to unmask]>
> Subject: Modify a script to allow any user to run the command
>
> Hi,
> We would like to modify this script/job. We would like to for anyuser/ID/person
> to be able to run the command START_AGENT_CMD. We have tried modifying but I
> have not been successful yet. Would anyone happen to have an idea on what needs
> to be changed? Thank you.
>
>
> #!/bin/sh
This appears to me to be a Unix System V init script. The operating system
that this mailing list deals with is MPE/iX. While MPE/iX does have a POSIX
compatible shell available I do not believe that the system boot process
possesses the capability to run init. In fact, I cannot find the init
executable on my HP3000.
I doubt that this can be altered to run on an HP3000. However, looking at the
script it appears that START_AGENT_CMD is set to "sh $AGENTSH". AGENTSH is
set to $EXEDIR/agent.sh ("$EXEDIR" should really be inclosed in double quotes
given that a path may contain spaces).
SO, the issue to be checked are the directory and script permissions. All the
directories in the path "$EXEDIR" need to have 'other' set to read/write
(_rwxrwxr_x/_rwxr_xr_x or chmod 775/755). Then the script itself needs to have
'other' set to read and execute at a minimum (_rwxr_xr_x or chmod 755). If the
script "agent.sh" contains references to other executables then these also must
have their permissions checked on the complete path and executable file itself.
HTH.
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Unencrypted messages have no legal claim to privacy
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:[log in to unmask]
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|