maybe chmod 0755 'init.d/umountnfs.sh'
maybe chmod 0755 'init.d/umountroot'
maybe chmod 0755 'init.d/unattended-upgrades'
+maybe chmod 0755 'init.d/unifi-video'
maybe chmod 0755 'init.d/urandom'
maybe chmod 0755 'init.d/uuidd'
maybe chmod 0755 'init.d/whoopsie'
maybe chmod 0644 'security/access.conf'
maybe chmod 0644 'security/group.conf'
maybe chmod 0644 'security/limits.conf'
+maybe chmod 0644 'security/limits.confe'
maybe chmod 0755 'security/limits.d'
maybe chmod 0644 'security/limits.d/uhd.conf'
maybe chmod 0644 'security/namespace.conf'
maybe chmod 0440 'sudoers'
maybe chmod 0755 'sudoers.d'
maybe chmod 0440 'sudoers.d/README'
+maybe chmod 0440 'sudoers.d/unifi-video'
maybe chmod 0644 'sysctl.conf'
maybe chmod 0755 'sysctl.d'
maybe chmod 0644 'sysctl.d/10-console-messages.conf'
mysql:x:144:
gdm:x:129:
systemd-coredump:x:997:
+unifi-video:x:131:
nm-openvpn:x:143:
mysql:x:144:
gdm:x:129:
+systemd-coredump:x:997:
mysql:!::
gdm:!::
systemd-coredump:!!::
+unifi-video:!::
nm-openvpn:!::
mysql:!::
gdm:!::
+systemd-coredump:!!::
--- /dev/null
+#!/bin/sh
+#
+# /etc/init.d/unifi-video -- startup script for Ubiquiti UniFi Video
+#
+#
+### BEGIN INIT INFO
+# Provides: unifi-video
+# Required-Start: $local_fs $remote_fs $network
+# Required-Stop: $local_fs $remote_fs $network
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Ubiquiti unifi-video
+# Description: Ubiquiti UniFi Video
+### END INIT INFO
+
+
+NAME=unifi-video
+DESC="Ubiquiti UniFi Video"
+
+PKGUSER=unifi-video
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+. /lib/lsb/init-functions
+
+ENABLE_UNIFIVIDEO=yes
+[ -f /etc/default/${NAME} ] && . /etc/default/${NAME}
+
+[ "x${ENABLE_UNIFIVIDEO}" != "xyes" ] && exit 0
+
+PIDFILE="/var/run/${NAME}/${NAME}.pid"
+CMD="/usr/sbin/${NAME}"
+
+CMD_START="${CMD} start"
+CMD_STOP="${CMD} -D stop"
+CMD_STATUS="${CMD} status"
+
+
+is_running() {
+ local RC
+ RC=0
+ ${CMD_STATUS} >/dev/null 2>&1 || RC=$?
+ return ${RC}
+}
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting ${DESC}" "${NAME}"
+ if is_running; then
+ log_progress_msg "(already running)"
+ log_end_msg 1
+ else
+ ${CMD_START}
+ sleep 1
+ if is_running; then
+ log_end_msg 0
+ else
+ log_end_msg 1
+ fi
+ fi
+ ;;
+ stop)
+ log_daemon_msg "Stopping ${DESC}" "${NAME}"
+ if is_running; then
+ ${CMD_STOP}
+ else
+ log_progress_msg "(not running)"
+ fi
+ log_end_msg 0
+ ;;
+ status)
+ status_of_proc -p ${PIDFILE} ${NAME} ${NAME} && exit 0 || exit $?
+ ;;
+ restart|reload|force-reload)
+ if is_running ; then
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d ${NAME} stop
+ else
+ /etc/init.d/${NAME} stop
+ fi
+ fi
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d ${NAME} start
+ else
+ /etc/init.d/${NAME} start
+ fi
+ ;;
+ *)
+ log_success_msg "Usage: $0 {start|stop|restart|reload|force-reload}"
+ exit 1
+ ;;
+esac
+
+exit 0
# Sets up user limits according to /etc/security/limits.conf
# (Replaces the use of /etc/limits in old login)
-session required pam_limits.so
+session required pam_limits.so
# The standard Unix authentication modules, used with
# NIS (man nsswitch) as well as normal /etc/passwd and
gdm:x:121:129:Gnome Display Manager:/var/lib/gdm3:/bin/false
gnome-initial-setup:x:123:65534::/run/gnome-initial-setup/:/bin/false
systemd-coredump:x:997:997:systemd Core Dumper:/:/sbin/nologin
+unifi-video:x:132:131::/usr/lib/unifi-video:/bin/sh
mysql:x:131:144:MySQL Server,,,:/nonexistent:/bin/false
gdm:x:121:129:Gnome Display Manager:/var/lib/gdm3:/bin/false
gnome-initial-setup:x:123:65534::/run/gnome-initial-setup/:/bin/false
+systemd-coredump:x:997:997:systemd Core Dumper:/:/sbin/nologin
+unifi-video:x:132:131::/usr/lib/unifi-video:/bin/sh
--- /dev/null
+../init.d/unifi-video
\ No newline at end of file
--- /dev/null
+../init.d/unifi-video
\ No newline at end of file
--- /dev/null
+../init.d/unifi-video
\ No newline at end of file
--- /dev/null
+../init.d/unifi-video
\ No newline at end of file
--- /dev/null
+../init.d/unifi-video
\ No newline at end of file
--- /dev/null
+../init.d/unifi-video
\ No newline at end of file
--- /dev/null
+../init.d/unifi-video
\ No newline at end of file
#ftp - chroot /ftp
#@student - maxlogins 4
+* hard nofile 65534
+* soft nofile 65534
# End of file
--- /dev/null
+# /etc/security/limits.conf
+#
+#Each line describes a limit for a user in the form:
+#
+#<domain> <type> <item> <value>
+#
+#Where:
+#<domain> can be:
+# - a user name
+# - a group name, with @group syntax
+# - the wildcard *, for default entry
+# - the wildcard %, can be also used with %group syntax,
+# for maxlogin limit
+# - NOTE: group and wildcard limits are not applied to root.
+# To apply a limit to the root user, <domain> must be
+# the literal username root.
+#
+#<type> can have the two values:
+# - "soft" for enforcing the soft limits
+# - "hard" for enforcing hard limits
+#
+#<item> can be one of the following:
+# - core - limits the core file size (KB)
+# - data - max data size (KB)
+# - fsize - maximum filesize (KB)
+# - memlock - max locked-in-memory address space (KB)
+# - nofile - max number of open file descriptors
+# - rss - max resident set size (KB)
+# - stack - max stack size (KB)
+# - cpu - max CPU time (MIN)
+# - nproc - max number of processes
+# - as - address space limit (KB)
+# - maxlogins - max number of logins for this user
+# - maxsyslogins - max number of logins on the system
+# - priority - the priority to run user process with
+# - locks - max number of file locks the user can hold
+# - sigpending - max number of pending signals
+# - msgqueue - max memory used by POSIX message queues (bytes)
+# - nice - max nice priority allowed to raise to values: [-20, 19]
+# - rtprio - max realtime priority
+# - chroot - change root to directory (Debian-specific)
+#
+#<domain> <type> <item> <value>
+#
+
+#* soft core 0
+#root hard core 100000
+#* hard rss 10000
+#@student hard nproc 20
+#@faculty soft nproc 20
+#@faculty hard nproc 50
+#ftp hard nproc 0
+#ftp - chroot /ftp
+#@student - maxlogins 4
+
+* hard nofile 65534
+# End of file
gdm:*:18107:0:99999:7:::
gnome-initial-setup:*:18107:0:99999:7:::
systemd-coredump:!!:18107::::::
+unifi-video:*:18158:0:99999:7:::
davfs2:*:17416:0:99999:7:::
mongodb:*:17457:0:99999:7:::
trezord:!:17738::::::
-susi:$6$Fcb59jpZ$88N57qIZj1cwxBeklmMoGkFkCmnSpNxC.eWkAVzDAtmgdCiEDdWDXz4XvOdl.VThcynXtWeonUNCKUvLfku2J0:17751:0:99999:7:::
+susi:$6$.IwGferMLJcbHcWe$MQbS1FTQt2G/o/Vmv.mA.HAJJT1nyo2ufeCLfeTeOz0K3VUhBZrszhnthqqPjxSc2ko4CUpWjwzPLUvNkEjgl/:18135:0:99999:7:::
bitcoin:*:17765:0:99999:7:::
cups-pk-helper:*:17767:0:99999:7:::
ntp:*:17771:0:99999:7:::
mysql:!:18060:0:99999:7:::
gdm:*:18107:0:99999:7:::
gnome-initial-setup:*:18107:0:99999:7:::
+systemd-coredump:!!:18107::::::
+unifi-video:*:18158:0:99999:7:::
--- /dev/null
+unifi-video ALL=SETENV: NOPASSWD:/usr/bin/dpkg, /usr/bin/apt-get, /bin/rm, /usr/bin/tee