× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

smb.conf keeps getting corrupted

DennisBoom
Aspirant

smb.conf keeps getting corrupted

Recently my RN202 crashed. Only option to get it running again was to powercycle it. Since then I have troubles with running SMB. When I try to enable it in Frontview, it simply does not. I used ssh to check and found that if I manually wanted to start smbd, it gives an error:

 
root@NAS:/# smbd -F -S
smbd version 4.4.5 started.
Copyright Andrew Tridgell and the Samba Team 1992-2016
WARNING: Ignoring invalid value '' for parameter 'security'
error opening config file '/etc/samba/smb.conf'

 

I checked the smb.conf file. It contains the line

security =

 

if I edited that line to

security = user

 

I can manually start SMB this way. However, I cannot use Frontview to make any SMB related configuration changes because it overwrites smb.conf and the issue is back. I know that smb.conf is automatically regenerated by design, but in my case it is regenerated incorrectly. 

 

How can I permanently fix this issue?

 

I have a RN202 running 6.6.1

Model: RN202|ReadyNAS 202
Message 1 of 4

Accepted Solutions
mdgm-ntgr
NETGEAR Employee Retired

Re: smb.conf keeps getting corrupt

You can check what it currently looks like by doing e.g.

# sqlite3 -column -header /var/readynasd/db.sq3 'SELECT * from service_cifs'

If that field is set incorrectly this ought to do the trick:

# sqlite3 /var/readynasd/db.sq3 'UPDATE service_cifs SET security="user"'

Normally it's the config file that needs fixing not the database. We use the database to automatically repair broken configuration.

View solution in original post

Message 3 of 4

All Replies
jak0lantash
Mentor

Re: smb.conf keeps getting corrupted

It's certainly something broken in the database: /var/readynasd/db.sq3, in table service_cifs maybe? I have only one entry, second field value is 'user'. What do you have?

Message 2 of 4
mdgm-ntgr
NETGEAR Employee Retired

Re: smb.conf keeps getting corrupt

You can check what it currently looks like by doing e.g.

# sqlite3 -column -header /var/readynasd/db.sq3 'SELECT * from service_cifs'

If that field is set incorrectly this ought to do the trick:

# sqlite3 /var/readynasd/db.sq3 'UPDATE service_cifs SET security="user"'

Normally it's the config file that needs fixing not the database. We use the database to automatically repair broken configuration.

Message 3 of 4
DennisBoom
Aspirant

Re: smb.conf keeps getting corrupt

Thanks a lot, issue solved.

Message 4 of 4
Top Contributors
Discussion stats
  • 3 replies
  • 2247 views
  • 1 kudo
  • 3 in conversation
Announcements