Relative Content

Tag Archive for linuxbashshellscriptingsudo

Running sudo command in bash script

I have a db server where I am sshing into and I am running the command “sudo -u oracle -H bash” and I am able to validate that successfully by doing this manually but I am trying to do the same process using bash script so I defined it in bash file as