0

I edited my /etc/samba/smb.conf file, and now my samba share is not accessible and the the /var/log/samba/log.smbd is reporting a non-useful mkdir error. I have removed the changes I thought I made, but that did not help.

0

To restore a samba config to the original, I did the following:

  • Download the image.
  • Extract the image.
  • Clone the image on to a flash drive: sudo dd bs=4M if=retropie-4.3-rpi2_rpi3.img of=/dev/sdb conv=fsync
  • Copy the file on the flashdrive to the Pi: scp .../etc/samba/smb.conf pi@192.168.0.1:/tmp/
  • On the pi: sudo mv /tmp/smb.conf /etc/samba/
| improve this answer | |
  • Or, sudo apt-get install --reinstall samba samba-common-bin ? – Roger Jones May 20 '19 at 15:56
  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year. – Ingo Jan 16 at 13:49
  • @Ingo At the time I wasn't sure if this was the best way to do it, so I never accepted my answer. Since no one else has answered, I guess I will accept it. – Morgoth Jan 16 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.