On Mon, 15 Jan 2001, Anand Kumria wrote:
> On Sun, Jan 14, 2001 at 05:41:00PM +0100, Igor Sobrado wrote:
> [snip]
> >
> > By the way, why have changed the Makefile install section?
> > Ok, I understand that a `make install' followed by a
> > `make install-include' and a `make install-man' is not so
> > obvious, I prefer how it is installed now, but the old
> > Makefile install sets both permissions and ownership
> > for all the files. I think it was important.
>
> What does INSTALL_DATA end up being in your generated Makefile?
>
> For me it is:
>
> INSTALL = /usr/bin/install -c
> INSTALL_PROGRAM = ${INSTALL}
> INSTALL_DATA = ${INSTALL} -m 644
>
> Which is precisely what I need (I set owner/group elsewhere)
Anand,
Thanks for your fast response.
The INSTALL_DATA in the Makefile that has been generated in my
workstations looks exactly as you described above. My problem is
that not all the binaries should have the same owner/group or
even permissions. For example in this directory:
drwxrwxr-x 2 root bin 512 Jul 16 1997 .
drwxrwxr-x 9 root bin 512 Jul 16 1997 ..
-r-xr-xr-x 1 bin bin 33068 Jan 18 1999 arpsnmp
-r-xr-xr-x 1 bin bin 117292 Oct 14 04:07 arpwatch
-rwxr-xr-x 1 bin bin 49152 Sep 4 1990 dig
-rwxr-xr-x 1 bin bin 31584 Sep 12 1990 doc
-rw-r--r-- 1 bin bin 492 Aug 23 1990 doc1.awk
-rw-r--r-- 1 bin bin 774 Aug 23 1990 doc3.awk
-rw-r--r-- 1 bin bin 1498 Aug 23 1990 doc4.awk
-r-sr-xr-x 1 root bin 22820 May 5 1997 pathchar
-r-xr-x--- 1 bin sys 91340 Aug 17 1997 pcapture
-r-xr-x--- 1 bin sys 446228 Jan 11 2000 tcpdump
-r-xr-xr-x 1 bin bin 33840 Jan 24 1997 tcpslice
-r-sr-xr-x 1 root bin 28592 Dec 14 09:04 traceroute
...tcpdump and pcapture can only be used by users related with
the user `bin' or the group `sys' (it should not work even if execution
permissions are set for others), and traceroute and pathchar require
the setuid bit to be set (in this case to root in both programs) to
be used by all the users in the system.
It worked as expected in previous releases of tcpdump. I think I will
try to recover these permissions/ownership if possible in both the
tar files and the packages I will build.
Best regards to all!
Igor.
--
Igor Sobrado, UK34436 - [EMAIL PROTECTED]
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe