t* If installed file has no write perms we must install it with 'cp' - sup - small tool for privilege escalation HTML git clone https://git.parazyd.org/sup DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 0492cb034b11bc7ae89a4be974cf80678c74bfe8 DIR parent ff73a7f2a0b3eace6096e1bba19df260ea3d2f56 HTML Author: pancake@dazo <unknown> Date: Mon, 14 Dec 2009 02:17:20 +0100 * If installed file has no write perms we must install it with 'cp' Diffstat: M Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/Makefile b/Makefile t@@ -25,7 +25,7 @@ mrproper: clean install: mkdir -p ${DESTDIR}${PREFIX}/bin - cp sup ${DESTDIR}${PREFIX}/bin + cp -f sup ${DESTDIR}${PREFIX}/bin -chown ${USER}:${GROUP} ${DESTDIR}/${PREFIX}/bin/sup -chmod 4111 ${DESTDIR}${PREFIX}/bin/sup mkdir -p ${DESTDIR}${PREFIX}/share/man/man1