| United States-English |
|
|
|
![]() |
Installing SoftBench > Appendix C Customizing SoftBench CM Configuration Modifying the Configuration Files |
|
The following configuration files come with SoftBench CM and are usually maintained by the SoftBench CM administrator. However, each SoftBench CM user can configure the default .fmrc file. The server reads and acknowledges modifications to these files every 30 seconds. The system writes a record to the /var/opt/softbench/cm/msglog file every time it reads a configuration file. Table C-1 Server Configuration Files
The server configuration files can exist in two different directories on your server:
SoftBench CM looks in both directories for the configuration files, but only uses one. The contents of the files found in the /etc/opt/softbench/config directory override the contents of the files found in /opt/softbench/config directory. Comment lines in these files begin with a "#" character. The cm.mapping file determines where archive files are physically stored on the server. This file is created during installation and contains default entries that MUST be modified to map to your archive file structure. Together this file and the mapping file determine the relationship between local files and directories and the logical and physical location of archive files and directories (see Figure C-1 “File Mapping Between Local and Archive Files ”). Each line in this file contains two fields separated by tabs or spaces. The first field is the logical archive directory prefix. The second field is the corresponding physical directory prefix. The cm.mapping file initially contains the following entry for the /TestArchive directory:
In this entry, /TestArchive is the logical archive path by which the SoftBench CM client and server communicate, and /var/tmp is the physical path where the example files are stored on the SoftBench CM server. Every file managed by SoftBench CM should have exactly one logical path name. You should not map multiple, logical archive path names to the same physical file or directory. When creating or updating the cm.mapping file, create the physical directories and set their ownership to softcm. Otherwise, the SoftBench CM server may not be able to access these directories. For example, if you add the following entry to the cm.mapping file:
you would also need to do the following from the command line:
Change the group id number for the "chgrp" entry above if you used a GroupID number other than "10000" for the softcm entry in the /etc/passwd file. You can edit the cm.mapping file while the SoftBench CM server is running. The server notices the changes and updates its internal data structures automatically. The cm.permission file determines users' access rights to the SoftBench CM archive files. When you make changes to this file, they take effect within 30 seconds of saving the file. The cm.permission file consists of a series of entries. Each entry contains three types of fields terminated by a semicolon, as follows:
where f1, f2 and f3 are three distinct types.
Table C-2 Options Used in the cm.permission and cm.option Files
The permission symbols come in three groups:
SoftBench CM normally uses the best matching entry (longest /path prefix match, then most specific user/host match) to determine access rights. However, by specifying priorities, you can use a shorter path for a specific user. For example, in the following entries:
the user "john" has "R" access to /earth because /earth is more specific than "/" and "S" access to the rest of the archive. The user "jane" has "S" access to the whole archive, including /earth because the "2" specifies an increased priority. The /opt/softbench/sbin/checkperm -d command displays the permissions file entries in sorted order. For any given access, the first entry that matches the requesting user@host and /path determines the access. You can order fields within an entry in two formats: Format 1. Place user field first and permissions field second.
Format 2. Place path field first and permissions field second.
Use the pattern RMDA or -abf-cdilmnptuwx-oqz-esvy for permissions and replace the disallowed permission bits or groupings with "-" characters. This makes it easier to understand which permissions are deleted and given. The permission letters can be in any order. If the cm.permission file is missing, or no match is found, no access is allowed. You should specify a default entry such as:
The cm.option file specifies two archive options: Title not available (Setting Logging and Debug Options )
Use the cron utility to trim the log files periodically because the log files have no maximum file length. The inetd.sec file determines the list of client machines that have access to the archive server machine.
You can edit the inetd.sec file while running the archive server. The server notices the change and updates its internal data structures immediately. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||