Example of useradd in Linux
useradd -s /sbin/nologin -d /var/www/api.domain.tld -m api
-s
- shell
-d
- home directory
-m
- create homedir if it is missing