usermod -v( --add-sub-uids) e usermod -w( --add-sub-gids) possono essere usati per manipolare gli intervalli subuid e subgid per un account utente, ma non sembra esserci alcun strumento che possa semplicemente elencarli. Ce n'è uno?
Almeno sulla mia casella Ubuntu 14.04 getentnon sembra essere pronto a gestire tali informazioni da /etc/subuide /etc/subgid.
Attualmente sto usando un piccolo script di shell, usando awkallo scopo.
Ecco un estratto da 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.
[...]