From 4520d3c66435699c2f2decb4a344dc8933b8e2c6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 28 May 1996 04:02:08 +0000 Subject: [PATCH] "make install" now sets uid/gid and mode on sudoers if it exists --- Makefile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 2b87010a3..d798e0e8b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -206,7 +206,10 @@ install-binaries: $(PROGS) install-sudoers: @ if [ -f $(sudoersdir)/sudoers ]; then \ - echo "Will not overwrite existing $(sudoersdir)/sudoers file."; \ + echo "Setting user/group and mode on existing $(sudoersdir)/sudoers file."; \ + chown $(install_uid) $(sudoersdir)/sudoers; \ + chgrp $(install_gid) $(sudoersdir)/sudoers; \ + chmod 0440 $(sudoersdir)/sudoers; \ else \ $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0440 $(srcdir)/sudoers $(sudoersdir)/sudoers; \ fi -- 2.40.0