Hi,On save of DCR, I am calling a script which will deploy the DCR content to DB and attached assets to target server file system using the open deploy command. We don't want to give deploy permission to all the users.So we are planning to put the logic to run the open deploy command as od- admin user in the script, irrelevant of the user who runs the script.So could you please tell me how to execute a command in the script as different user? I tried the su - command, that does not worked out.Any pointer/help will be appreciated.Thanks,A.S.
Plus, if you have it setuid to run as root, then there are some more details you have to work out. Basically Perl runs in a paranoid mode if it is running setuid as root, so many commands are restricted. Read about taint mode for Perl (google perl taint mode)