Date: Fri, 19 Oct 2001 22:50:51 +0200 From: dirk.meyer@dinoex.sub.org (Dirk Meyer) To: freebsd-ports@FreeBSD.ORG, fullermd@over-yonder.net, ache@nagual.pp.ru Subject: Re: HEADS UP: Apache port change from nobody:nogroup to www:www planned Message-ID: <FqMWzg6EXO@dmeyer.dinoex.sub.org> References: <4QAWHA6EXO@dmeyer.dinoex.sub.org> <20011017155854.A43168@nagual.pp.ru> <4QAWHA6EXO@dmeyer.dinoex.sub.org> <20011019021808.A1594@over-yonder.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthew D. Fuller wrote: > Might I suggest: > WWWUSER?=www > WWWGROUP?=www nice point! here an improved Version: kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany in Makefile: ------------------ WWWUSER?=www WWWGROUP?=www PLIST_SUB+= WWWUSER=${WWWUSER} WWWGROUP=${WWWGROUP} pre-install: if ! pw groupshow ${WWWGROUP}; then pw groupadd ${WWWGROUP} -g 80; fi if ! pw usershow ${WWWUSER}; then pw useradd ${WWWUSER} -u 80 \ -g ${WWWGROUP} -h - -d /nonexistent -s /nonexistent \ -c "Webserver Daemon"; fi ------------------ in pkg-plist: ------------------ @exec if ! pw groupshow %%WWWGROUP%% 2>/dev/null; then pw groupadd %%WWWGROUP%% -g 80; fi @exec if ! pw usershow %%WWWUSER%% 2>/dev/null; then pw useradd %%WWWUSER%% -u 80 -g %%WWWGROUP%% -h - -d /nonexistent -s /nonexistent -c "Webserver Daemon"; fi @unexec if pw usershow %%WWWUSER%% | grep -q 80:80; then pw userdel %%WWWUSER%%; fi @comment (removed by userdel) pw groupdel %%WWWGROUP%% ------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FqMWzg6EXO>