]> granicus.if.org Git - sudo/commitdiff
"make install" now sets uid/gid and mode on sudoers if it exists
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 28 May 1996 04:02:08 +0000 (04:02 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 28 May 1996 04:02:08 +0000 (04:02 +0000)
Makefile.in

index 2b87010a3415ba180d48a1b2c9f3f988830d0f21..d798e0e8b4e025ae8dc0d181fe62b87217c7ce73 100644 (file)
@@ -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