We do the same thing by making the package in a particular group.  We make
the module world readable and use the userInGroup("magic_group") function.
This function returns true if the user is root or the user is in the group
specified.

local err_message = [[
You do not have access to VASP.5.3.5!


Users have to show their licenses and be confirmed by the
VASP team that they are registered users under that license.
Scan a copy of the license and send it to [email protected]
]]


if (userInGroup("namd_group")) then
  local vasp_dir="/opt/apps/intel15/mvapich2_2_1/vasp/5.3.5"
  setenv("TACC_VASP_DIR",vasp_dir)
  setenv("TACC_VASP_BIN",pathJoin(vasp_dir,"bin"))
  prepend_path("PATH",pathJoin(vasp_dir,"bin"))
else
   LmodError(err_message,"\n")
end


I hope this helps too!
R.


On Mon, Feb 20, 2017 at 10:22 AM, Alvarez, Damian <[email protected]>
wrote:

> Hi Maxime,
>
> At JSC we install NAMD in a directory that belongs to the namd group.
> Access to others is not allowed. To add users to that group they have to
> send us proof that they acquired a license. I believe there is also an
> arrangement to communicate with the NAMD developers which users have access
> to the software, even though I might recall wrong and that might be for
> another software.
>
> I hope that helps!
>
> Damian
>
> On 20/02/17 17:11, "Maxime Boissonneault" <maxime.boissonneault@
> calculquebec.ca> wrote:
>
>     Hi all,
>
>     I would like to know how various sites handle NAMD licensing. The
>     license seem to imply that each user has to have the license (similar
> to
>     VASP). However, I could find many sites who do this check, while others
>     don't.
>
>     Do you do it at your site ?
>
>
>     --
>     ---------------------------------
>     Maxime Boissonneault
>     Analyste de calcul - Calcul Québec, Université Laval
>     Président - Comité de coordination du soutien à la recherche de Calcul
> Québec
>     Team lead - Research Support National Team, Compute Canada
>     Instructeur Software Carpentry
>     Ph. D. en physique
>
>
>     ------------------------------------------------------------
> ------------------
>     Check out the vibrant tech community on one of the world's most
>     engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>     _______________________________________________
>     Lmod-users mailing list
>     [email protected]
>     https://lists.sourceforge.net/lists/listinfo/lmod-users
>
>
>
>
> ------------------------------------------------------------
> ------------------------------------
> ------------------------------------------------------------
> ------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
> ------------------------------------------------------------
> ------------------------------------
> ------------------------------------------------------------
> ------------------------------------
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Lmod-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lmod-users
>



-- 
Robert McLay, Ph.D.
TACC
Manager, HPC Software Tools
(512) 232-8104

Reply via email to