1 2 3 4 5 6
#!/bin/sh addgroup -S mongodb 2>/dev/null adduser -S -D -G mongodb -h /var/lib/mongodb -s /sbin/nologin -g mongodb mongodb 2>/dev/null exit 0