SCO OpenServer 5.0.5 - uucp - Setting user, group, and file permissions on remote file
Hey Guys,
We have numerous SCO OpenServer 5.0.5 servers and use uucp to transfer files between them. Is there a way to specify the user, group, and file permissions of the file when it gets to the remote system?
I am having problems with some users not being able to move or read the file since they don't have permissions. When they get there they are uucp:uucp and file permissions of 666.
I would like them to be filepro:group and 755 so that filepro can access the files and do with it whatever is needed. filepro is the use in which the filePro Plus database system runs under and is importing these files.
so that you don't need to enter any passwords. Once you are set up with this type of process for all of your systems, remote admin and scripting becomes a breeze:)..however, you still need to put in the intitial work in order to set this up. Configure 5 per day, and you've finished in a month:)
So I am just assuming that there is now ay to just tell uucp to set the file to a certain permissions on the remote system without using other technologies.
What about rsync? Does this allow for permissions?
Note, that security is not a real factor since all machines are on a point-to-point encrypted VPN so plain text transfers are fine.
Rsync does allow for permissions, and would do it, but you'd still need to come up with a method of scripting the authentication. You'd probably have to use 'expect':
You'd also need an rsync server running on the remote PC (or on both PCs depending on how you wish to manage the setup). Using ssh as the shell over which the communication occurs solves these and probable many other issues.
However, bear in mind that with permissions. user 501 on one system needs to be exactly the same as user 501 on the one you transfer it to if you wish to use permissions across the whole network. I suspect as you explore this, a fairly radical restructuring of your network may be necessary?
What ever you do it will involve something extra - you cannot achieve what you desire through uucp alone.
What you could do:
On remote system create the 'incoming' directory with a group privilage that will allow your 'filepro' user to access the directory. The use the set group id so incoming uucp files will 'inherit' that group:
dir for the user(s) to use the file(s).
use cron to run the script as root (root's cron task) will do the job for you.