NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
z00
Sep 14, 2017Aspirant
ReadyNas104 - cannot active SMB
I' ve upgrade the firmware from 6.7.5 to 6.8.0 the other day. After that I installed one app from the website but failed.
And the app cannot be started or uninstalled from the website, so I used command dpkg -r to uninstall that through SSH.
Then I reboot the nas and found I cannot connect the nas by Network Neighborhood, even use IP address directly.
I checked the website that smb button turned grey. Whenever activate it times, SMB still cannot work and the button was grey all the time.
So I reinstall os 6.7.5 with img downloaded from office site, but the smb still not work.
Then upgade to os 6.8.0 again, the smb service still cannot be actived.
After the upgrade, the status is as follows and I'll mail the log.
root@z00-nas:~# systemctl status smb.service ● smb.service - Samba SMB Daemon Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enab led) Active: failed (Result: exit-code) since Thu 2017-09-14 02:30:22 H KT; 36s ago Process: 6943 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, stat us=1/FAILURE) Main PID: 6943 (code=exited, status=1/FAILURE) Sep 14 02:30:20 z00-nas systemd[1]: Starting Samba SMB Daemon... Sep 14 02:30:22 z00-nas systemd[1]: smb.service: Main process exited, co de=exited, status=1/FAILURE Sep 14 02:30:22 z00-nas systemd[1]: Failed to start Samba SMB Daemon. Sep 14 02:30:22 z00-nas systemd[1]: smb.service: Unit entered failed sta te. Sep 14 02:30:22 z00-nas systemd[1]: smb.service: Failed with result 'exi t-code'. root@z00-nas:~#
I checked the questions asked in forums, but cannot found the fix methon except factory reset.
But I don't have enough spaces to backup from the NAS, is there any other way to fix it?
3 Replies
- evan2NETGEAR Expert
Which APP did you installed?
It should be some low-quality app cause smb permission change from root to guest.
Please change all below file to root,
root@ReadyNAS:/var/lib/samba# ls -l
total 1764
-rwxrwxrwx 1 guest guest 421888 Jan 19 2017 account_policy.tdb
-rwxrwxrwx 1 guest guest 430080 Sep 9 23:42 group_mapping.tdb
drwxr-xr-x 3 root root 4096 Nov 21 2012 private
-rwxrwxrwx 1 guest guest 528384 Jan 19 2017 registry.tdb
-rwxrwxrwx 1 guest guest 421888 Jan 19 2017 share_info.tdb
root@ReadyNAS:/var/lib/samba# cd private/
root@ReadyNAS:/var/lib/samba/private# ls -l
total 836
drwxrwxrwx 2 guest guest 4096 Aug 23 00:22 msg.sock
-rwxrwxrwx 1 guest guest 421888 Sep 7 22:06 passdb.tdb
-rwxrwxrwx 1 guest guest 430080 Jan 19 2017 secrets.tdb
- z00Aspirant
Thank you for your reply.
The app is LogAnalyzer. When installing, it tells there's some permission error about rsyslogs.
After uninstlling the app by apt-get, I checked the owner of files you metioned and changed owner to root.
At first, smb service can be activated. However, after reboot, smb service was turned off again.
Then I checked all the files owner and found almost of files in root directory were changed to guest:guest.
So I want to change owner of them all to root. But I make a big mistake.
root@z00-nas:/# chown root:root -R *
chown: changing ownership of 'DATA/home/admin/.ssh/ssh_authorized_keys': Operation not permitted
chown: changing ownership of 'home/admin/.ssh/ssh_authorized_keys': Operation not permitted
chown: changing ownership of 'proc/sys/debug': Operation not permitted...
After reboot, I cannot ssh to the NAS anymore...
Because the user of the website is admin, I also cannot use website to change anything, inclued reinstall the firmware.
I tried to use boot menu to reinstall OS, but the boot menu only canbe selected to Nomal, neither OS reinstall or Factory default shown.
As I used X-raid, I cannot use other computer to read the data from the harddisk. Is there any other method to reinstall OS?
- StephenBGuru - Experienced User
You could try paid support (my.netgear.com), and see if they can rebuild the OS partition.
If you are ok with losing the data, you could put the disks in a Windows PC and then unformat them. You can do that with windows disk manager (right-click on each "volume" and delete it).
Then reinsert the disks with the NAS powered down, and power it up. It will do a factory install.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!