Running tcc and tccd with different user IDs in Distributed TETware
This information is not applicable to Win32 systems.
are run with the same user ID on the local system.
This should be the same as the owner of the files below the test suite
root directory on the local system.
This arrangement is desirable because in Distributed TETware both
may create files in the test suite directory hierarchy.
runs with the ID of the user
and so it is appropriate for
to run with the ID of the user
Sometimes it is necessary to run
with a different user ID from the one used by
These instructions assume that you will run
as the user
and the people who invoke
will use their own login IDs.
You should perform the following operations:
Create a group called
Arrange for the supplementary group list of all the users who will use
Distributed TETware to include the
On most systems, you do this by listing all the login names
in the last field of the
file, make sure that the
user has the
group as the primary group (this is shown in the fourth field in the
Note that the 102 is the same as the 102 in the
of 2 (by using the
This will cause files created by
and the test cases and tools that
executes to be writable by group as well as by user.
For example, you might put the following entry in
tcc stream tcp nowait tet /home/tet/bin/in.tccd in.tccd -m2
Make sure that each user who will work with Distributed TETware has a
of 2 (or less restrictive).
You can do this by putting the line:
in each user's
Make sure that all the directories below
belong to the group
and are writable by group.
You can do this by executing the following commands:
Note that this assumes that you have not yet built any of the test
If you have, you will need to find all the build products and change
them to group
find . -type d ! -group tet -print | xargs chgrp tet
find . -type d -print | xargs chmod g+w
and mode 664 as well.
Make sure that files and directories created below
inherit the group of the directory in which they are created.
On some systems this is the default behaviour, whereas on others you
must turn on each directory's set-GID bit in order to enable this
If you need to turn on the set-GID bits you can do this by
executing the following commands:
find . -type d -print | xargs chmod g+s
Points to note:
These instructions assume that the test case files are readable
by owner and group (at least).
If they're not, the following command will fix this:
find . -type f -print | xargs chmod ug+r
The instruction to set the set-GID bit on directories is to ensure that
newly-created files and directories inherit their group ID from the
If this is your system's default behaviour, you don't need to set the
set-GID bit in order to achieve this.
These instructions assume that your system keeps password and group
If your system uses NIS for its password and group databases you
should ask your system administrator what to do.
On some systems it is not advisable to edit the password and group files
Instead you should use the appropriate system administration commands
to add and/or change entries in these files.
"The Test Case Controller daemon
in the TETware User Guide.
manual page in the TETware User Guide.