MAS user setup

From MCEWiki
Revision as of 15:03, 7 February 2012 by Mhasse (talk | contribs) (Adding a user)

Care must be taken when adding new users in order that

  • the new user can access the MAS binaries, scripts, and IDL projects
  • the new user's actions do not interfere with other users of the system

Adding a user

This can be done from the graphical manager, but since you're here you might as well use these commands:

MCE_USER=mce
sudo useradd -m -g $MCE_USER -s /bin/bash new_user
sudo passwd new_user

Note that the primary group of the user should be the "mce" group. This is so that temporary files can be overwritten by other users. If you want to use another username as the main MCE user, that should be fine. Adjust MCE_USER as necessary.

Setting up the user's environment

Add the following lines at the end of the .bashrc file:

# MAS!
umask 002
source /usr/mce/mce_script/template/mas_env.bash

MAS/IDL users will need to add $MAS_IDL/mas to their path, e.g.

IDL_PATH="<IDL_DEFAULT>:$MAS_IDL/mas"

For additional command-line functionality, engineering users may also want to add

source $MAS_SCRIPT/mas_library.bash
source $MAS_TEMPLATE/mas_aliases.bash



Up to MAS