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.
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?
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.
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.
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.