SCO OpenServer 5.0.5 - uucp - Setting user, group, and file permissions on remote file

Posted on 2006-06-29
Last Modified: 2013-12-05
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.


Question by:wtconway
  • 2
  • 2
  • 2
  • +1
LVL 38

Accepted Solution

yuzh earned 250 total points
ID: 17016215
You can write a script to change the file(s) permissions and move them to a target
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.

Author Comment

ID: 17018535
I could do this but it would make me have to modify the crontab on about 125 servers.

Any other solutions?
LVL 38

Expert Comment

ID: 17023124
If you want all the users can read the file(s) from the
uucp target dir, eg

you need to make sure that other has r and x permissions to the dir and the file(s) are readable for all

Have a nice weekend!

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

LVL 22

Assisted Solution

pjedmond earned 125 total points
ID: 17026342
Assuming that you have sshd on the remote servers, and that these files are all copied into the same (or similar directories, then you could:

ssh user@remotehost chmod -R 755 /path/to/dir
ssh user@remotehost chown -R /path/to/dir

You may wish to look at:

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:)

(   (()
(`-' _\
 ''  ''

Author Comment

ID: 17031505
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.
LVL 22

Expert Comment

ID: 17032017
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?

(   (()
(`-' _\
 ''  ''


Assisted Solution

JJSmith earned 125 total points
ID: 17111929

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:


mkdir /u01/incoming
chown uucp:fpgroup /u01/incoming
chmod 2777 /u01/incoming

now when a file arrives in /u01/incoming it will be uucp:fpgroup - it will still be 666.

so now an fpgroup user will be able to read write the file and move it.



Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Vmware Vswitch  VS  Redhat  Bridge 1 115
Unix Question 19 50
Need a version of telnet and/or ssh that supports tcp wrappers on AIX 5.1 16 98
Image not there 4 57
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question