-1

Recently my experiment needs to implement CVE-2017-7494 (the so called sambacry), and I am trying to rebuild the vulnerable environment

I am new to this, not very sure how to set all the path and conf right

here is what I did:

# wget https://download.samba.org/pub/samba/stable/samba-4.5.9.tar.gz
# apt-get install acl attr autoconf bison build-essential \
  debhelper dnsutils docbook-xml docbook-xsl flex gdb krb5-user \
  libacl1-dev libaio-dev libattr1-dev libblkid-dev libbsd-dev \
  libcap-dev libcups2-dev libgnutls-dev libjson-perl \
  libldap2-dev libncurses5-dev libpam0g-dev libparse-yapp-perl \
  libpopt-dev libreadline-dev perl perl-modules pkg-config \
  python-all-dev python-dev python-dnspython python-crypto \
  xsltproc zlib1g-dev

Reference about the above package.

# tar -xvf samba-4.5.9.tar.gz
# cd samba-4.5.9
# ./configure
# make
# make install

after that I found it installed under /local, and cannot start samba normally because, say, smbd not found, etc

I think it's a problem of path and config file then I tried this to fix it.

But didn't get well realizing.

Would anyone please help?

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
galagala
  • 179
  • 1
  • 1
  • 7

1 Answers1

0

Since you did not specify a path in your configure parameters, it should be by default at /usr/local/samba/sbin/smbd.

You can try running this in your shell (and add it to your profile) to add it to your path:

export PATH=/usr/local/samba/bin/:/usr/local/samba/sbin/:$PATH

adamyi
  • 547
  • 2
  • 15