Extra files: Difference between revisions
(Created page with "<code>/usr/local/extrafiles</code> is a directory on the cfengine hub to which teaching staff have full access. The contents of this directory are synch'ed by <code>cf-agent</code> to the same-named directory on all user-loginable New World computers (i.e., lab computers, login servers and VLAB servers). Additionally, all user-loginable computers have the following two files installed in <code>/etc/profile.d</code>: # <code>extrafiles.sh</code> # <code>extr...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<code>/usr/local/extrafiles</code> is a directory on the [[cfengine hub]] to which teaching staff have | '''Extra files''' is the term used to refer to the ability for teaching staff to directly control the contents of particular file system locations on [[New World]] lab computers and login and VLAB servers. | ||
See also [[extra packages]]. | |||
See also [[extra versions]]. | |||
<code>/usr/local/extrafiles</code> is a directory on the [[cfengine hub]] to which teaching staff have read/write access via SSH. | |||
See user <code>extrapackages</code> in <code>/etc/passwd</code> on the hub. The user ID and group ID of this user are 998. | |||
<code>[[cf-agent]]</code> uses <code>rsync</code> to synch the contents of this directory to the same-named directory on all user-loginable New World computers (i.e., lab computers, login servers and VLAB servers). The owner and group owner of all files and directories thus copied are set to the above user/group ID. | |||
Additionally, all user-loginable computers have the following two files installed in <code>/etc/profile.d</code>: | Additionally, all user-loginable computers have the following two files installed in <code>/etc/profile.d</code>: | ||
Line 8: | Line 18: | ||
The first, <code>extrafiles.sh</code>, configures two environment paths so users automatically have <code>/usr/local/extrafiles/bin</code> in their PATH and so that their PYTHONPATH is set to <code>/usr/local/extrafiles/lib</code>. | The first, <code>extrafiles.sh</code>, configures two environment paths so users automatically have <code>/usr/local/extrafiles/bin</code> in their PATH and so that their PYTHONPATH is set to <code>/usr/local/extrafiles/lib</code>. | ||
The second, <code>extraprofile.sh</code>, checks for the presence of <code>/usr/local/extrafiles/extraprofile.sh</code> and, if found, executes it in the environment of the current shell thus allowing teaching staff to further customise the execution environment of users | The second, <code>extraprofile.sh</code>, checks for the presence of <code>/usr/local/extrafiles/extraprofile.sh</code> and, if found, executes it in the environment of the current shell thus allowing teaching staff to further customise the execution environment of users. | ||
Finally, <code>cf-agent</code> inserts "extrafiles" passwd and group entries in the corresponding files on the user-loginable hosts so that file owner lookups appropriately return "extrafiles". |
Latest revision as of 12:19, 6 September 2023
Extra files is the term used to refer to the ability for teaching staff to directly control the contents of particular file system locations on New World lab computers and login and VLAB servers.
See also extra packages.
See also extra versions.
/usr/local/extrafiles
is a directory on the cfengine hub to which teaching staff have read/write access via SSH.
See user extrapackages
in /etc/passwd
on the hub. The user ID and group ID of this user are 998.
cf-agent
uses rsync
to synch the contents of this directory to the same-named directory on all user-loginable New World computers (i.e., lab computers, login servers and VLAB servers). The owner and group owner of all files and directories thus copied are set to the above user/group ID.
Additionally, all user-loginable computers have the following two files installed in /etc/profile.d
:
extrafiles.sh
extraprofile.sh
The first, extrafiles.sh
, configures two environment paths so users automatically have /usr/local/extrafiles/bin
in their PATH and so that their PYTHONPATH is set to /usr/local/extrafiles/lib
.
The second, extraprofile.sh
, checks for the presence of /usr/local/extrafiles/extraprofile.sh
and, if found, executes it in the environment of the current shell thus allowing teaching staff to further customise the execution environment of users.
Finally, cf-agent
inserts "extrafiles" passwd and group entries in the corresponding files on the user-loginable hosts so that file owner lookups appropriately return "extrafiles".