Page 1 of 1

gradm - problem installing ! /sbin

PostPosted: Thu Feb 19, 2004 4:05 pm
by letrout
I wanted to install gradm into /usr/local/sbin instead of /sbin, so I changed "DESTDIR=" to "DESTDIR=/usr/local" (and MANDIR) in the Makefile. Seemed to work ok, but when I ran gradm -P I get

Password written to /etc/grsec/pw.
Could not open /etc/grsec/pw
open: No such file or directory

So it's still trying /etc/grsec instead of /usr/local/etc/grsec (which does exist and got the acl file from the install). Went back into the Makefile for a closer look and it seems sometimes GRSEC_DIR is used as "$(DESTDIR)$(GRSEC_DIR)" and sometimes alone as "$(GRSEC_DIR)". I'm no expert on manually editing Makefiles so I gave up at this point.

Does the Make file not allow for easy change of the install dir, or is there something deeper that is hard-coded to expect /etc/grsec? Should I just give up on this idea and install gradm to /sbin?