usermod -v( --add-sub-uids) et usermod -w( --add-sub-gids) peuvent être utilisés pour manipuler les plages de sous-uid et de sous-gid pour un compte d'utilisateur, mais il ne semble y avoir aucun outil qui puisse simplement les lister. Est-ce qu'il y a un?
Au moins sur ma boîte Ubuntu 14.04 getentne semble pas prête à gérer ces informations à partir de /etc/subuidet /etc/subgid.
Actuellement, j'utilise un petit script shell, à awkcet effet.
Voici un extrait de usermod(8):
-v, --add-sub-uids FIRST-LAST
Add a range of subordinate uids to the users account.
[...]
-V, --del-sub-uids FIRST-LAST
Remove a range of subordinate uids from the users account.
[...]
-w, --add-sub-gids FIRST-LAST
Add a range of subordinate gids to the users account.
[...]
-W, --del-sub-gids FIRST-LAST
Remove a range of subordinate gids from the users account.
[...]