diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-06 04:25:14 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-06 04:25:14 +0000 |
commit | cc35e16915397378289d3ab6f7c9e21a1f9a17f6 (patch) | |
tree | 52b6fd419cb3040101590ecb4522687fb90e4101 /security/drweb-sendmail/scripts | |
parent | Run as drweb user, not as root (diff) |
Run as drweb user, not as root
Notes
Notes:
svn path=/head/; revision=48489
Diffstat (limited to 'security/drweb-sendmail/scripts')
-rw-r--r-- | security/drweb-sendmail/scripts/post-install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/security/drweb-sendmail/scripts/post-install b/security/drweb-sendmail/scripts/post-install new file mode 100644 index 000000000000..7e0a5a7d02db --- /dev/null +++ b/security/drweb-sendmail/scripts/post-install @@ -0,0 +1,21 @@ +#!/bin/sh +ex=0 +if ! id -u drweb > /dev/null 2>&1; then + echo "You need an account \"drweb\" to install this package." + echo "Please add it by hand (try \"man vipw\") and try again." + echo "" + echo "An example /etc/master.passwd entry is:" + echo "drweb:*:426:426::0:0:Dr.Web Scanner:/nonexistent:/sbin/nologin" + echo "" + ex=1 +fi +if ! grep -q "^drweb:" /etc/group; then + echo "You need a group \"drweb\" to install this package." + echo "" + echo "An example /etc/group entry is:" + echo "drweb:*:426:" + echo "" + ex=1 +fi +[ "$ex" = "1" ] && exit 1 +exit 0 |