1 2 3 4 5 6
#!/bin/sh user=searchhut group=searchhut addgroup -S $group 2>/dev/null || true adduser -S -D -h /var/lib/$user -s /sbin/nologin -G $group -g $user $user 2>/dev/null || true