0

there's a script that I have and it needs to be run by root user. I just wanted to know how to run that script using su in the script. - I'm running CentOS7.
The command I attempted (below) failed:
su root credentials=/home/root/root.cred
and then continue with the rest of the script - sadly i...