[Samba] How to build just one tool from sources
R. Diez
rdiez-2006 at rd10.de
Mon Feb 23 10:54:38 UTC 2026
Hi all:
I need a newer version of tool smbcacls because of its new options '--save savefile' and '--recurse'.
So I downloaded the sources (samba-4.23.4.tar.gz) and built Samba like this:
./configure --prefix="$HOME/somewhere/samba-4.23.4-bin"
make
make install
The trouble is, building takes a long time.
The "make" phase does not seem to build everything, because "make install" builds other things too, so I had to specify -j to "make install" or it would take even longer. That in itself makes me wonder whether the build system is properly written. But this is another matter.
Is there a way to build just the smbcacls tool? I know some Samba libraries smbcacls depends on will have to be built too, but hopefully not everything in Samba, like other tools or the server parts.
I tried this based on an old answer I found on the Internet:
make bin/smbcacls
But I got this error:
PYTHONHASHSEED=1 WAF_MAKE=1 ./buildtools/bin/waf --targets=9 bin/smbcacls
No function 'bin/smbcacls' defined in /home/rdiez/somewhere/samba-4.23.4/wscript
make: *** [Makefile:131: 9 bin/smbcacls] Error 1
Thanks in advance,
rdiez
More information about the samba
mailing list