Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
infra:howto:manage_users [2026/06/24 11:51] – created - external edit 127.0.0.1infra:howto:manage_users [2026/10/23 05:31] (current) – better quotas/reservations antranigv
Line 22: Line 22:
 </code> </code>
  
-This prints the next available ID (highest UID + 1). This number will be used for both the UID and GID. Then create the user:+This prints the next available ID (highest UID + 1). This number will be used for both the UID and GID. Then create the group and the user: 
 + 
 +<code> 
 +ldapaddgroup username newId 
 +</code>
  
 <code> <code>
Line 29: Line 33:
  
 ''ldapadduser'' takes ''<username> <groupname | gid> [uid]''. We pass the same number for both GID and UID, since each user gets their own primary group with a matching ID. ''ldapadduser'' takes ''<username> <groupname | gid> [uid]''. We pass the same number for both GID and UID, since each user gets their own primary group with a matching ID.
- 
-===== Creating Datasets ===== 
- 
-TO BE WRITTEN 
  
 ===== Setting Password ===== ===== Setting Password =====
Line 75: Line 75:
 ldapremovesshkey username "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... user@host" ldapremovesshkey username "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... user@host"
 </code> </code>
 +
 +===== Creating Datasets =====
 +
 +For each user two datasets shall be created in the storage server, ''mustafar'', - 10G home and 100G user - in (/prefix)/home/username and (/prefix)/user/username respectively. 
 +
 +<code>
 +# creation of 10G/10G/12G home
 +zfs create -o refquota=10G  -o quota=12G  -o reservation=12G  znas1/abi/home/${username}
 +
 +# creation of 100G/100G/120G user
 +zfs create -o refquota=100G -o quota=120G -o reservation=120G znas1/abi/user/${username}
 +
 +# Granting permissions to both
 +chown -R ${userid}:${userid} /znas1/abi/home/${username}
 +chown -R ${userid}:${userid} /znas1/abi/user/${username}
 +
 +</code> 
 +
  
 ===== Removing User Email ===== ===== Removing User Email =====