hello,
I am trying to copy a file over to a set of aix servers and then set the file permissions, owner, group etc and all of this logged in as sudo. I was able to copy the file over using rcp - i know its not secure or not best way to copy - but unable to execute chmod on the remote server as this command fails with a file not found.
I am on server1 logged in as sudo and ran the script to copy FILE1.DEL to a user Jason home directory on server2
chmod: server2:/home/Jason}/FILE1.DEL: A file or directory in the path name does not exist.
initial thought was the file for some reason isnt get copied but then a quick check revealed the file is getting copied.
Any tips on how to work my way around this (using rcp) is greatly appreciated. I am guessing it would be a similar problem with chgrp and chown as well.
thank you
UPDATE:
I ended up doing an rsh (ssh isnt defined on all the servers involved) and then run the chmod etc and problem solved