If I was to
chmod 777 blah.sh on server A and then move it to server B, would it retain the permissions, or would it default to some other permissions once it hit server B?
migrated from stackoverflow.com Apr 3 '11 at 22:21
That depends entirely and completely on the method of transfer.
No it won't since the permissions are attached to users.
However it only takes a simple command to chmod a file so just move it and set the permissions.