Skip to content

calculquebec/magic_castle_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Magic Castle tools

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.

pusersh

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 ~/bin directory:
    1. Create a bin folder in the centos's home directory
    2. Import the pusersh script in ~/bin
    3. Run chmod +x ~/bin/pusersh
  • 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 ./'

About

Tools to adjust the Magic Castle once it is created

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages