SN="ntp" IDN="87" . lib/lsb/init-functions if ! (getent group $SN > /dev/null); then log_info_msg "${INFO}Creating $SN group${NORMAL}\n" groupadd -g $IDN $SN fi if ! (getent passwd $SN > /dev/null); then log_info_msg "${INFO}Creating $SN user${NORMAL}\n" useradd -c "Network Time Protocol" -d /var/lib/ntp \ -g $SN -s /bin/false -u $IDN $SN fi