Skip to main content
11 events
when toggle format what by license comment
Mar 9, 2018 at 14:55 vote accept Ignas Poška
Mar 7, 2018 at 21:39 history edited user1404316 CC BY-SA 3.0
explain efficiency
Mar 7, 2018 at 18:51 history edited user1404316 CC BY-SA 3.0
remove mention other answer
Mar 7, 2018 at 18:46 comment added user1404316 Well, at least it was an opportunity teach the shell idiom ${FOO:-default}. At this point, I'll leave it in for that reason, and won't further change the answer, on the basis that the person running the script or one-liner will be a sysadmin who will know what the UID_MIN value is.
Mar 7, 2018 at 18:39 comment added Jeff Schaller I should have clarified -- UID_MIN isn't globally set; it's a parameter in /etc/login.defs; sorry!
Mar 7, 2018 at 18:32 comment added user1404316 @JeffSchaller - Thanks. incorporated into the answer.
Mar 7, 2018 at 18:29 history edited user1404316 CC BY-SA 3.0
use uid_min
Mar 7, 2018 at 18:21 history edited user1404316 CC BY-SA 3.0
account for nobody
Mar 7, 2018 at 18:12 comment added Jeff Schaller The Q isn't tagged linux, but if that's the scope, you might use UID_MIN rather than hard-coding 1000 in case the local sysadmin adjusted it.
Mar 7, 2018 at 18:11 history edited Jeff Schaller CC BY-SA 3.0
in lists, it takes twice as much indenting for formatting
Mar 7, 2018 at 18:01 history answered user1404316 CC BY-SA 3.0