Getting “adduser” to chose the next available uid *under* 999

This is a redhatism, if you want to use “adduser” but for a system/service/non-regular-user account add the “-rm” flag. “-r” tells it to chose a uid between 100 and 999, and “-m” tells it to make the homedir as if it were a normal user.


adduser -rm foo

Leave a Reply