Logo
Explore Help
Sign In
gfwleak/zhangyang-zerotierone
Archived
1
0
Fork 0
You've already forked zhangyang-zerotierone
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
9001ab58581b59cae1985bb22f8c0362e54256fc
zhangyang-zerotierone/debian/postinst

12 lines
218 B
Plaintext
Raw Normal View History

Run as nonroot user on Linux (with CAP_NET_ADMIN and CAP_NET_RAW added). - ZT will only drop root privileges if zerotier-one user exists. It is created by Debian postinst script - in other cases the user has to be created by administrator. - Linux >=4.3 with ambient capabilities is required, otherwise ZT will silently - "-U" option now also disables privileges dropping
2016-10-16 13:35:29 +02:00
#!/bin/sh -e
case "$1" in
configure)
Do not add zerotier-one user if it does not exist (Debian)
2018-05-02 14:08:42 -07:00
if ! id zerotier-one >>/dev/null 2>&1; then
adduser --system --group --home /var/lib/zerotier-one --no-create-home zerotier-one
fi
Run as nonroot user on Linux (with CAP_NET_ADMIN and CAP_NET_RAW added). - ZT will only drop root privileges if zerotier-one user exists. It is created by Debian postinst script - in other cases the user has to be created by administrator. - Linux >=4.3 with ambient capabilities is required, otherwise ZT will silently - "-U" option now also disables privileges dropping
2016-10-16 13:35:29 +02:00
;;
esac
#DEBHELPER#
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 180ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API