Difference between revisions of "Users"

From Mufasa (BioHPC)
Jump to navigation Jump to search
 
(122 intermediate revisions by the same user not shown)
Line 1: Line 1:
Only Mufasa users (i.e., people with a user account on Mufasa) can access the machine and interact with it.
= Requesting a new user of Mufasa =


This page explains [[Users#Creating new users|how to create new users]] and [[Users#Users and groups|what is user policy]] on Mufasa.
Only people with a '''Linux user account''' on Mufasa can [[System#Accessing Mufasa|access the machine]] and interact with it. Only Linux users registered to SLURM's accounting system can [[System#The_SLURM_job_scheduling_system|use SLURM]] to run jobs.


All requests for the creation of new users and their registration to SLURM's accounting must be '''authorized by a member of the academic staff''' in charge of Mufasa.


= Creating new Mufasa users =
Requests are done by writing an email
In order to provide a physical person with the possibility of running jobs on Mufasa, two operations must be executed:


# the person must be assigned a '''new Linux user''' on Mufasa
: '''TO:''' [[User:GiulioFontana|Giulio Fontana]]
# the new Linux user must be '''registered in SLURM's accounting system'''
: '''CC:''' the person who authorizes the request


The first operation only enables the person to interact with Mufasa via SSH and to execute basic activities, such as loading data and code in their <code>/home</code> directory.
The email must provide the following 5 pieces of information:


The second operation is allows the person to fully exploit Mufasa's computational resources, which requires using [[System#The SLURM job scheduling system|The SLURM job scheduling system]].
# '''name and surname''' of the person that the new Linux user is associated to
# (POLIMI) '''email address''' of the person
# '''user category''', which can be either ''student'' (for M.Sc. students) or ''researcher'' (for everyone else, including Ph.D. students)
# '''research group''' that the person belongs to (see [[Users#Usernames and group names|below]])


== Creating a new Linux user ==
= Usernames and group names =
Creation of new Linux users is done either by [[Roles|Job Administrators]] or by specially designated users within each research group. If you are not one of these, [[Special:Emailuser/GiulioFontana|write to Giulio Fontana]].
Mufasa usernames have the form <code>xyyyyyyyy</code> (all lowercase), where <code>x</code> is the first letter of the first name of the person, and <code>yyyyyyyy</code> is their surname (or part of it if it's too long). For instance, a person called Giuseppe Brambilla will be assigned username <code>gbrambill</code>.


Mufasa users who have the power to create new users do so with command
On Linux machines, users belong to ''groups''. On Mufasa, groups are used to identify research groups. Assigment of Mufasa's users to groups follow these rules:


<pre style="color: lightgrey; background: black;">
* All users corresponding to physical people belong to group <code>'''users'''</code>
sudo  /opt/share/sbin/add_user.sh -u <user> -g users,<group>
* Additionally, each user must belong to ''one and only one'' of the following groups:
</pre>
** <code>'''cartcas'''</code>, i.e. [http://www.cartcas.polimi.it/ CartCasLab] (prof. Cerveri);
 
** <code>'''biomech'''</code>, i.e. [http://www.biomech.polimi.it/ Biomechanics Research Group] (prof. Votta);
where <code><user></code> is the username of the new user and <code><group></code> is one among the groups described in [[Users#Users and groups|Users and groups]], i.e. <code>cartcas</code>, <code>biomech</code>, <code>nearmrs</code>, <code>nearnes</code>, <code>bio</code>.
** <code>'''nearmrs'''</code>, i.e. [https://nearlab.polimi.it/medical/ Medical Robotics Section of NearLab] (prof. De Momi);
 
** <code>'''nearnes'''</code>, i.e. [https://nearlab.polimi.it/neuroengineering/ NeuroEngineering Section of NearLab] (prof. Ferrante);
For instance, in order to create a user on Mufasa for a person named Mario Rossi belonging to CartCasLab, the following command will be used:
** <code>'''bio'''</code>, for BioEngineering users not belonging to any of the research groups listed above.
 
: <code>sudo  /opt/share/sbin/add_user.sh -u mrossi -g users,cartcas</code>
 
At first login, new users will be asked to change the password initially assigned to them. For security reason, it is important that such first login occurs as soon as possible after user creation.
 
== Providing new users with access to SLURM ==
New users are not able to [[User Jobs#Executing jobs on Mufasa|Execute jobs via SLURM]] until they are properly registered in SLURM's accounting system.
 
In order to register with SLURM a new Linux user (and possibly also require the creation of such user) a person belonging to the academic staff in charge of Mufasa should [[Special:Emailuser/GiulioFontana|write to Giulio Fontana]].


The request will need to contain the following information:
The person cited within brackets is the faculty who is in charge of Mufasa for each research group.


* name and surname of the person who needs to use SLURM
= Removing inactive usernames =
* if the person is a M.Sc. student or a researcher (these include Ph.D. students
Mufasa usernames that are not in use anymore '''must be removed'''. Typically, these correspond either to M.Sc. students who graduated or to researchers who left POLIMI.
* what research group the person belongs to
* name of the Linux user (if already created)


= Users and groups =
Removing a username means:
Mufasa usernames have the form <code>xyyy</code> (all lowercase), where <code>x</code> is the first letter of the first name of the person, and <code>yyy</code> is their complete surname. For instance, a person called Mario Rossi will be assigned username <code>mrossi</code>. If multiple users with the same surname ''and'' first letter of the first name exist, those created after the very first one are given usernames including a two-digit counter: <code>mrossi</code>, <code>mrossi01</code>, <code>mrossi02</code> and so on.
* '''deleting the username''' from the Linux system
* '''deleting the home directory''' from the filesystem


On Linux machines such as Mufasa, users belong to ''groups''. On Mufasa, groups are used to identify the research group that a specific user is part of. Assigment of Mufasa's users to groups follow these rules:
Removing inactive usernames is necessary to preserve Mufasa's safety and to avoid wasting resources (e.g., disk space).


* All users corresponding to people belong to group <code>'''users'''</code>
Whenever a person ceases to use Mufasa, '''the member of staff responsible for them''' (e.g.: professor, Ph.D) '''must''':
* Additionally, each user must belong to ''one and only one'' of the following groups (within brackets is the name of the faculty who is in charge of Mufasa for each group):
# (optional) check the home directory and copy any useful leftovers somewhere else
** <code>'''cartcas'''</code>, i.e. [http://www.cartcas.polimi.it/ CartCasLab] (prof. Cerveri);
# write an email to [[User:GiulioFontana|Giulio Fontana]]
** <code>'''biomech'''</code>, i.e. [http://www.biomech.polimi.it/ Biomechanics Research Group] (prof. Votta);
** <code>'''nearmrs'''</code>, i.e. [https://nearlab.polimi.it/medical/ Medical Robotics Section of NearLab] (prof. De Momi);
** <code>'''nearnes'''</code>, i.e. [https://nearlab.polimi.it/neuroengineering/ NeuroEngineering Section of NearLab] (prof. Ferrante);
** <code>'''bio'''</code>, for BioEngineering users not belonging to any of the research groups listed above.

Latest revision as of 16:40, 10 April 2024

Requesting a new user of Mufasa

Only people with a Linux user account on Mufasa can access the machine and interact with it. Only Linux users registered to SLURM's accounting system can use SLURM to run jobs.

All requests for the creation of new users and their registration to SLURM's accounting must be authorized by a member of the academic staff in charge of Mufasa.

Requests are done by writing an email

TO: Giulio Fontana
CC: the person who authorizes the request

The email must provide the following 5 pieces of information:

  1. name and surname of the person that the new Linux user is associated to
  2. (POLIMI) email address of the person
  3. user category, which can be either student (for M.Sc. students) or researcher (for everyone else, including Ph.D. students)
  4. research group that the person belongs to (see below)

Usernames and group names

Mufasa usernames have the form xyyyyyyyy (all lowercase), where x is the first letter of the first name of the person, and yyyyyyyy is their surname (or part of it if it's too long). For instance, a person called Giuseppe Brambilla will be assigned username gbrambill.

On Linux machines, users belong to groups. On Mufasa, groups are used to identify research groups. Assigment of Mufasa's users to groups follow these rules:

The person cited within brackets is the faculty who is in charge of Mufasa for each research group.

Removing inactive usernames

Mufasa usernames that are not in use anymore must be removed. Typically, these correspond either to M.Sc. students who graduated or to researchers who left POLIMI.

Removing a username means:

  • deleting the username from the Linux system
  • deleting the home directory from the filesystem

Removing inactive usernames is necessary to preserve Mufasa's safety and to avoid wasting resources (e.g., disk space).

Whenever a person ceases to use Mufasa, the member of staff responsible for them (e.g.: professor, Ph.D) must:

  1. (optional) check the home directory and copy any useful leftovers somewhere else
  2. write an email to Giulio Fontana