I have written a script to ftp the contents of a directory from one sun box to another as a backup of sorts! problem being the files permissions are not retained...
Thanks for the reply, I had already searched the faqs and found this question, the problem I have is that I am ftping the conf directory from a solaris box running firewall 1 s'ware and wanted to keep all of the file permissions the same as the originals with setuids etc... therefore setting the umask would not help...
I don't know about using ftp for this, but if you can use cpio, there are enough options to keep file permissions and mod times etc which might do what you want.
If you mount a directory from one machine onto the other you can then copy from one to the other. Whether this will compromise security with one being the firewall is something you would need to look at.
Thanks for you help, It seems the ftpd can pick up a preset umask but cannot retain the original permissions of all files, so I have now tared up the directory first, compressed the file and then ftp'd..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.