Edit Samba smb.conf and restart the process, where is the /etc/init.d/samba?

I have a WD MyCloud 3TB with firmware 2.11.133

My backup are in mirror mode and between my subfolders there are some named “.bin”.
After some hours of searching, I found that this name appears between the values of “veto” samba files, and then the mirror copies generate an error blocking the copy of all the files inside that directories.

veto files = /:2eDS_Store/**.bin**/Network Trash Folder / .systemfile / lost + found / Nas_Prog / mirrored / uploaded / .wdmc /

I have modified the samba configuration file, and then I have e to restart the samba process with the new settings, but I can not just do it because I haven’t found the way to do it.

I followed several guides that I found on this forum without any success:
with service smbd restart the console says service: not found
in etc/init.d there is no samba file

I also tried to run the downgrade to see if some older versions had the opportunity to access the samba service, but again without success.

I am now in a dead end and then politely ask for help at your highest wisdom.
Someone can help me?

Hopefully an experienced User will be able to assist.

Because your using firmware v2.x the file locations may not be the same as those in v4.x firmware for which most prior threads mention. As such using SSH you can instruct the OS to search for the smb.conf file and display the locations where it is found by issuing the following command from the SSH command line (when logged into the My Cloud via SSH):

find . -name smb.conf

Edit to add: On the v4.x firmware the smb.conf file is located in the following directories.
./usr/share/samba/smb.conf
./etc/samba/smb.conf
./etc/wdcomp.d/smb-file/saved_settings/etc/samba/smb.conf

Under the v4.x firmware the command to restart Samba is: /etc/init.d/samba restart

Running: find . -name samba indicates the file samba is located in the following directories under v4.x firmware.
./usr/share/samba
./usr/lib/samba
./var/log.hdd/samba
./var/cache/samba
./var/lib/samba
./var/log/samba
./etc/dhcp3/dhclient-enter-hooks.d/samba
./etc/logrotate.d/samba
./etc/samba
./etc/pam.d/samba
./etc/init.d/samba
./etc/dhcp/dhclient-enter-hooks.d/samba
./etc/wdcomp.d/smb-file/saved_settings/etc/samba
./run/samba

From what I heard version 2.11.133 uses busybox. A lot of devices use busybox. It is a way to have a Linux system with out taking up as much space. Most of the Linux executables are symlinks to busybox. When you compile busybox there are options to add or remove commands. I would expect most files still reside in the normal Linux locations.

RAC

I believe these boxes run Debian Wheezy, search for samba settings for that OS.

The v4.x My Clouds run Debain, the v2.x My Cloud supposedly run Busybox.

Busybox is a program hat runs on a stripped down Linux.

RAC

Here are my results for the search that have reported to me:

... # find . -name smb.conf

/etc/samba/smb.c/.onf
/usr/local/config/smb.conf

one of these is a link because the changes made to a file are also reported in the other file.

For the service:

... # find . -name samba

/etc/pam.d/samba
/etc/samba
/tmp/samba
/var/lock/samba
/var/log/samba
/var/run/samba

some of these are folders, the only file is /etc/pam.d/samba and if is called with the “restart” parameter or “start” or “stop” always returns:

./samba: line 2: auth: not found
./samba: line 3: auth: not found
./samba: line 4: auth: not found
./samba: line 7: session: not found
./samba: line 8: password: not found

but the new samba directives are completely ignored.

I found several guides for linux busybox for using samba at this path /opt/etc/init.d/S08samba that in the WD distribution doesn’t exists.

Is there any way to change the firmware from version 2.0.0 to 04 in order to have the Debian version?

Check the /etc directory for a file called inittab. Do a “more /etc/inittab”.
This is the file that usually does some of the work after a boot. It should have some entries that point to the directory of the start up scripts.

RAC

After several attempts, and many many hours verifying the maze of controls and processes in the inittab file, I give up all hopes…

I also tried to use rsync with ssh to bypass the problem, but the process interrupts for other reasons that I have not pursued.

So I preferred to exclude my .bin folders from the mirroring processes.

Hi there!

I had the exact same problem, changes to our smb.conf were gone after reboot, but I finally found the solution!

Just type smb restart to restart the samba service and you’re good to go! Changes won’t survive a reboot, but they’re working fine after restarting the service.