How can i make a normal user who has no log in right to run program?

Comments

1 comment

  • Avatar
    wojciechka

    It is not possible with the <runas> option. However, you can simply just run the su command manually - i.e. specify

    <runProgram> <program>su</program> <programArguments>- mysqluser -s /bin/bash -c "tar -xzmf /tmp/dbinstall/MySQL-advanced-sles10.x86_64.tar.gz -C /opt/mysql"</programArguments> <progressText>${msg(Installer.Progress.unpackingDatabase.info)}</progressText> <onErrorActionList> <setInstallerVariable> <name>needrollbackdbfiles</name> <value>true</value> </setInstallerVariable> <logMessage> <text>fail to uncompress database package</text> </logMessage> </onErrorActionList> </runProgram>

Please sign in to leave a comment.