|
The exceptions are as follows:
<SYSCONFDIR>povray.conf
,
where <SYSCONFDIR>
is the system configuration directory for POV-Ray for Unix
(typically either /usr/local/etc or /etc).
Within povray.conf
you ought to see two sections like the following ... (note
that the actual contents of the installed version are slightly different from this example)
[Permitted Input Paths] 1=%INSTALLDIR% [Permitted Output Paths] 1=%INSTALLDIR%
%INSTALLDIR%
resolves to the location that POV was installed. It would be
legal to say something like -
%INSTALLDIR%/scenesfor example, to refer to (say)
/usr/local/share/povray35/scenes
,
assuming you installed povray into '/usr/local/share/povray35
'.
Note that the installdir location does not relate to where the binary is run from - it relates to the information defined at compile-time. Relative paths are legal as well, and will be resolved only once at load time (but relative to the current directory, not the installdir). For example, a relative path like the following ...
[Permitted Output Paths] 1=../outputwould be resolved with relation to the current directory at the time POV-Ray for Unix was started, so if you started povray while in the directory
~/myscenes/newscene
,
then the above path would be resolved as ~/myscenes/output
. Please note that the
actual location of the povray binary is not relevent here - it is the current directory that
matters (which is typically not that of the program).
A directory placed in the permitted input paths section only allows read. One placed in the output paths section permits both read and write; write permission is inferred to mean read permission. This means you don't need to duplicate entries (the above example shows such a duplication - it is not harmful, just unnecessary). You can have up to 64 entries (numbered 0..63) in each section.
An entry in the permitted paths sections gives permission not only for that directory, but all the ones below it (note that this is different from the 'permit read/write in current directory' option mentioned earlier, which only applies to that one directory alone, and not those below it).
A reminder that, as mentioned above, if write protection is turned on at all, the
<installdir>/ini directory
is always write-protected, and nothing in the
above permission sections can allow it. This is to prevent a script from modifying
povray.conf to remove or alter the I/O Restrictions for the next time that povray runs.
|