Skip to content

How to show the number of subordinate UIDs for a user? #12080

Answered by eriksjolund
eriksjolund asked this question in Q&A
Discussion options

You must be logged in to vote

@Luap99 Good to know.

I tried out the range version and used bash to add the numbers (and subtract 1):

[testuser@localhost ~]$ grep testuser /etc/subuid
testuser:493216:65536
testuser:593216:65536
[testuser@localhost ~]$ echo $(( $(podman info --format "{{ range .Host.IDMappings.UIDMap }}+{{.Size }}{{end }}" ) - 1 ))
131072
[testuser@localhost ~]$ 

(I hope I got it right)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@Luap99
Comment options

@vrothberg
Comment options

@eriksjolund
Comment options

@Luap99
Comment options

Comment options

You must be logged in to vote
1 reply
@Luap99
Comment options

Answer selected by vrothberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants