Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infra:howto:manage_users [2026/09/28 10:29] – [Adding a New User] 37.26.174.181infra:howto:manage_users [2026/10/23 05:31] (current) – better quotas/reservations antranigv
Line 33: 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 ===== 
- 
-For each user two datasets shall be created in the storage - 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 refreservation=10G  -o reservation=12G  znas1/abi/home/${username} 
- 
-# creation of 100G/100G/120G user 
-zfs create -o refquota=100G -o refreservation=100G -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>  
  
 ===== Setting Password ===== ===== Setting Password =====
Line 92: 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 =====