Originally Posted by anaigini45
ssh firstname.lastname@example.org sudo -S /etc/fw/New.fw
This is to login to the firewall machine as user fwadmin and copy and activate the firewall script(New.fw) there.
If you're logging in as the user who presumably owns /etc/fs/New.fw, why are you using sudo at all? Also, note that your command doesn't copy anything. Read the scp(1) for that. http://www.linuxcommand.org/man_pages/scp1.html
. To call the script, from a remote machine, you'll want to do something like
ssh email@example.com ./etc/fs/New.fw
I'm assuming that this is a Bash script that is tested and working locally, and has the correct permissions set.
Also, you had a question about root: it, as always, can do absolutely anything, including as a subset, anything that user fwadmin can do.