Once a Magic Castle instance is ready, you may need to import or update the material in all home directories. The following tools allow this.
This script is only meant to be run by centos in order to run a command as
each user.
- To be installed in the
centos's~/bindirectory:- Create a
binfolder in thecentos's home directory - Import the
pusershscript in~/bin - Run
chmod +x ~/bin/pusersh
- Create a
- Common usage examples:
$ pusersh whoami # To test if LDAP and related services work properly
$ pusersh 'mkdir /home/$USER/some_directory'
# Make sure /project/def-sponsor00/some_file is readable by the group
$ pusersh 'cp /project/def-sponsor00/some_file /home/$USER/'
# Recursive copy of some readable workshop material in home directory
$ pusersh 'cp -r /project/def-sponsor00/material ./'