# add to ~/.bash_profile or ~/.bash_login file (bash users)
export "FGMVERSION=3"
export "FGMROOT=/home/FGM/"
export "FGMPATH=$FGMROOT/data/dcalf/"
export "SATTPATH=$FGMROOT/log/atorb/"
export "PATH=$PATH:$FGMROOT/bin:$FGMROOT/scripts"
export "MANPATH=$(manpath):/home/FGM/doc"
# (or add MANPATH /home/FGM/doc to /etc/man.config)




# give rw permissions to the group
umask 002
#all users performing calibration should be in the FGM group
#(usermod -a -G FGM user)
#
#all files and directories under /home/FGM should be in the FGM group
#
#/home/FGM and all its subdirectories should have the group GID bit set 
#(find /home/FGM -type d -exec chmod g+s '{}' \;)
#
#all executable files in /home/FGM should have the group GID bit set 
#(find /home/FGM -type f -perm /u=x -exec  chmod g+s '{}' \;)

#or, if setfacl is available:
#as root from /home: 
#chgrp -R FGM FGM
#chmod -R g+rwX FGM
#find FGM -type d -exec chmod g+s {} +
#find FGM -user FGM -type f -executable -exec chmod ug+s {} +
#setfacl -dRm g::rwx FGM

