I have a problem with my situation that i have to run a script inside another machine as root. I can only do ssh without password as oracle, so i have to write something like that:
su - oracle -c "ssh $node /tmp/x.sh"
How can i run x.sh as root?
EDIT
[root@alz1 ~]# su - oracle
[oracle@alz1 ~]$ su
Password:
su: incorrect password
[oracle@alz1 ~]$