Can't disable Samba share and drives not showing on GUI

usuario74

Occasional Visitor
Owner of RT-AX86U. Merlin 386.5
After spending many days setting up my new router as I had my RT-AC3200.. I got to the last item I had to set: SAMBA shares.
I have a flash drive and a external hard drive both connected to the router but.. on the GUI on section Advanced_AiDisk_samba.asp
First issue: It is not showing the drives at the bottom of the page. Empty. Can't add any folders. I can add users. Strangely on Windows File explorer I can access folders (from both devices) being shared from the router.
Second issue: If I try to turn off the Enable share button to disable the shares. It will show spinning "Applying settings" and remain like that forever. If I refresh the page after ten minutes. The shares remain enabled.

I have searched the forum but couldn't find anyone with similar issues. I really don't want to start from scratch. It took me many hours to get to this point.
I have installed diversion, skynet, Yazfi and rtorrent. Like I had on my older router.

Any help?
Where can I find a log that could give any insight?
Thanks.
 

usuario74

Occasional Visitor
I see this on the log page in GUI when I try to disable share (without success):

Code:
Apr 18 14:13:44 rc_service: httpds 1808:notify_rc restart_ftpsamba;restart_dnsmasq

Apr 18 14:13:44 custom_script: Running /jffs/scripts/service-event (args: restart ftpsamba)

Apr 18 14:13:44 FTP_Server: daemon is stopped

Apr 18 14:13:44 wsdd2[13320]: Terminated received.

Apr 18 14:13:44 wsdd2[13320]: terminating.

Apr 18 14:13:44 Samba_Server: smb daemon is stopped

Apr 18 14:13:44 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)

Apr 18 14:13:44 Diversion: restarted Dnsmasq to apply settings

Apr 18 14:13:44 uiDivStats: dnsmasq has restarted, restarting taildns

Apr 18 14:13:45 Samba_Server: daemon is started

Apr 18 14:13:45 custom_script: Running /jffs/scripts/service-event (args: restart dnsmasq)

Apr 18 14:13:45 wsdd2[31331]: starting.

Apr 18 14:13:46 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)

Apr 18 14:13:46 Diversion: restarted Dnsmasq to apply settings

Apr 18 14:13:46 uiDivStats: dnsmasq has restarted, restarting taildns

Apr 18 14:13:49 admin: Started taildns from .
 
Last edited:

usuario74

Occasional Visitor
/var/log/log.nmbd

Code:
[2022/04/18 11:14:14,  0] nmbd/nmbd.c:861(nmbd_main)

  nmbd version 3.6.25 started.

  Copyright Andrew Tridgell and the Samba Team 1992-2011

[2022/04/18 11:14:20,  0] nmbd/nmbd.c:66(terminate)

  Got SIGTERM: going down...

[2022/04/18 11:14:22,  0] nmbd/nmbd.c:861(nmbd_main)

  nmbd version 3.6.25 started.

  Copyright Andrew Tridgell and the Samba Team 1992-2011

[2022/04/18 11:14:24,  0] nmbd/nmbd.c:66(terminate)

  Got SIGTERM: going down...

[2022/04/18 11:14:26,  0] nmbd/nmbd.c:861(nmbd_main)

  nmbd version 3.6.25 started.

  Copyright Andrew Tridgell and the Samba Team 1992-2011

[2022/04/18 11:14:59,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)

  *****

 

  Samba name server RT-AX86U is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.1

 

  *****

[2022/04/18 13:52:56,  0] nmbd/nmbd.c:66(terminate)

  Got SIGTERM: going down...

[2022/04/18 13:52:57,  0] nmbd/nmbd.c:861(nmbd_main)

  nmbd version 3.6.25 started.

  Copyright Andrew Tridgell and the Samba Team 1992-2011

[2022/04/18 13:53:30,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)

  *****

 

  Samba name server RT-AX86U is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.1

 

  *****

[2022/04/18 14:13:44,  0] nmbd/nmbd.c:66(terminate)

  Got SIGTERM: going down...

[2022/04/18 14:13:45,  0] nmbd/nmbd.c:861(nmbd_main)

  nmbd version 3.6.25 started.

  Copyright Andrew Tridgell and the Samba Team 1992-2011

[2022/04/18 14:14:18,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)

  *****

 

  Samba name server RT-AX86U is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.1

 

  *****
 
Last edited:

usuario74

Occasional Visitor
SMB.CONF
Have to say I have never shared those folders. The system is automatically sharing all the root folders on the hard drive and the flash drive.

[email protected]:/tmp/home/root# cat /etc/smb.conf

Code:
[global]

netbios name = RT-AX86U

server string = RT-AX86U

workgroup = WORKGROUP

username level = 20

unix charset = UTF8

display charset = UTF8

load printers = no

printing = bsd

printcap name = /dev/null

log file = /var/log/samba.log

log level = 0

max log size = 5

security = USER

guest ok = no

map to guest = Bad User

encrypt passwords = yes

pam password change = no

null passwords = yes

force directory mode = 0777

force create mode = 0777

max connections = 5

socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE

obey pam restrictions = no

use spnego = yes

client use spnego = no

disable spoolss = yes

host msdfs = no

strict allocate = no

wide links = no

bind interfaces only = yes

interfaces = lo br0 192.168.0.1/255.255.255.0

use sendfile = yes

map archive = no

map hidden = no

map read only = no

map system = no

store dos attributes = no

dos filemode = yes

oplocks = yes

level2 oplocks = yes

kernel oplocks = no

enable core files = no

deadtime = 30

load printers = no

printable = no

max protocol = SMB2

smb encrypt = disabled

min receivefile size = 16384

passdb backend = smbpasswd

smb passwd file = /etc/samba/smbpasswd

[Download2 (at TOSHIBA_1TB)]

comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5"-HDD

path = /tmp/mnt/TOSHIBA_1TB/Download2

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin

[MOVIES (at TOSHIBA_1TB)]

comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5"-HDD

path = /tmp/mnt/TOSHIBA_1TB/MOVIES

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin

[SOFTWARE (at TOSHIBA_1TB)]

comment = TOSHIBA_1TB's SOFTWARE in TOSHIBA USB 3.5"-HDD

path = /tmp/mnt/TOSHIBA_1TB/SOFTWARE

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin

[TEMP (at TOSHIBA_1TB)]

comment = TOSHIBA_1TB's TEMP in TOSHIBA USB 3.5"-HDD

path = /tmp/mnt/TOSHIBA_1TB/TEMP

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin

[TV (at TOSHIBA_1TB)]

comment = TOSHIBA_1TB's TV in TOSHIBA USB 3.5"-HDD

path = /tmp/mnt/TOSHIBA_1TB/TV

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin

[entware (at AX86U_DRIVE)]

comment = AX86U_DRIVE's entware in Samsung Flash Drive FIT

path = /tmp/mnt/AX86U_DRIVE/entware

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin

[skynet (at AX86U_DRIVE)]

comment = AX86U_DRIVE's skynet in Samsung Flash Drive FIT

path = /tmp/mnt/AX86U_DRIVE/skynet

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin

[nsru (at AX86U_DRIVE)]

comment = AX86U_DRIVE's nsru in Samsung Flash Drive FIT

path = /tmp/mnt/AX86U_DRIVE/nsru

dos filetimes = yes

fake directory create times = yes

valid users = admin

invalid users =

read list = admin

write list = admin
 
Last edited:

L&LD

Part of the Furniture
Please use pastebin and/or insert this within the code </> blocks.
 

ColinTaylor

Part of the Furniture
Try un-mounting and then physically removing the Toshiba HDD. Then reboot the router. Does the Samba page now display properly, with the Samsung flash drive being shown?
 

usuario74

Occasional Visitor
Try un-mounting and then physically removing the Toshiba HDD. Then reboot the router. Does the Samba page now display properly, with the Samsung flash drive being shown?
Yes!
And I can turn off "Enable share".

But I need the hard drive connected for rtorrent. I had the same flashdrive and hard disk working on my RT-AC3200 before.
What can I do?
 

ColinTaylor

Part of the Furniture
My guess is that this is a bug in the web page caused by the double quote in the device name, TOSHIBA USB 3.5"-HDD.

As this double quote is embedded in the device there's not a lot you can do about it other than hope that it's fixed in a firmware update.

If you now plug the HDD back into the router does it mess up the Samba page like before?
 

usuario74

Occasional Visitor
My guess is that this is a bug in the web page caused by the double quote in the device name, TOSHIBA USB 3.5"-HDD.

As this double quote is embedded in the device there's not a lot you can do about it other than hope that it's fixed in a firmware update.

If you now plug the HDD back into the router does it mess up the Samba page like before?
I swapped the USB ports just in case. Turned on the router only with the flashdrive. The samba page looked fine.
Plugged the hard drive. Waited for it to automount. Refreshed samba page... issue is back.
The device is the same that worked fine with the RT-AC3200 running Merlin. If is a bug must have been introduced recently or maybe for the AX86U. I don't want to go to stock firmware to see if it is ASUS code issue or something introduced with Merlin.
I will try update for the recent Merlin version tomorrow. And will report back.
 

usuario74

Occasional Visitor
Haven't updated to latest Merlin because I don't think there would be any changes.
I did try edit smb.conf without the double quote... but that didn't help and when you restart the smb.conf is written again.

Also I brought back the RT-AC3200 I was using before. this is running Merlin 384.13
This is the smb.conf , the double quote is there.


Code:
[global]
workgroup = WORKGROUP
netbios name = RT-AC3200
server string = RT-AC3200
unix charset = UTF8
display charset = UTF8
load printers = no
printing = bsd
printcap name = /dev/null
log file = /var/log.samba
log level = 0
max log size = 5
security = USER
guest ok = no
map to guest = Bad User
encrypt passwords = yes
pam password change = no
null passwords = yes
force directory mode = 0777
force create mode = 0777
max connections = 7
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = no
wide links = no
bind interfaces only = yes
interfaces = lo br0 192.168.0.1/255.255.255.0
use sendfile = yes
map archive = no
map hidden = no
map read only = no
map system = no
store dos attributes = no
dos filemode = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
enable core files = no
deadtime = 30
load printers = no
printable = no
max protocol = NT1
smb encrypt = disabled
min receivefile size = 16384
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
[Download2]
comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5"-HDD
path = /tmp/mnt/TOSHIBA_1TB/Download2
dos filetimes = yes
fake directory create times = yes
valid users = admin
invalid users =
read list = admin
write list = admin
[MOVIES]
comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5"-HDD
path = /tmp/mnt/TOSHIBA_1TB/MOVIES
dos filetimes = yes
fake directory create times = yes
valid users = admin
read list = admin
write list = admin
[nsru]
comment = sdb1's nsru in SMI USB DISK
path = /tmp/mnt/sdb1/nsru
dos filetimes = yes
fake directory create times = yes
valid users = admin
read list = admin
write list = admin
 
Last edited:

octopus

Part of the Furniture
Try this and se if you get rid of your problem. (if I understand this right)

Code:
#!/bin/sh
# /jffs/scripts/smb.postconf
CONFIG=$1
source /usr/sbin/helper.sh

pc_replace "comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5"-HDD" "comment = comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5-HDD" $CONFIG
pc_repalce "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5-HDD" $CONFIG
 
Last edited:

usuario74

Occasional Visitor
I am guessing I create a file and paste that (correcting some typing mistakes). and then execute the script.
Wouldn't the " create issues when "...."..." ?
I got these errors:

Code:
[email protected]:/jffs/scripts# ./smb.postconf

sed: TOSHIBA_1TBs: No such file or directory
sed: Download2: No such file or directory
sed: in: No such file or directory
sed: TOSHIBA: No such file or directory
sed: USB: No such file or directory
sed: 3.5-HDD": No such file or directory
sed: $CONFIG: No such file or directory
sed: pc_replace: No such file or directory
sed: "comment: No such file or directory
sed: =: No such file or directory
sed: TOSHIBA_1TBs: No such file or directory
sed: TOSHIBA_1TBs: No such file or directory
sed: SOFTWARE: No such file or directory
sed: in: No such file or directory
sed: TOSHIBA: No such file or directory
sed: USB: No such file or directory
sed: 3.5-HDD": No such file or directory
sed: $CONFIG: No such file or directory
sed: pc_replace: No such file or directory
sed: "comment: No such file or directory
sed: =: No such file or directory
sed: TOSHIBA_1TBs: No such file or directory

Try this and se if you get rid of your problem. (if I understand this right)

Code:
#!/bin/sh
# /jffs/scripts/smb.postconf
CONFIG=$1
source /usr/sbin/helper.sh

pc_replace "comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5"-HDD" "comment = comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5-HDD" $CONFIG
pc_repalce "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5-HDD" $CONFIG
 

octopus

Part of the Furniture
what give "cat /jffs/scripts/smb.postconf"
 

usuario74

Occasional Visitor
what give "cat /jffs/scripts/smb.postconf"
that file doesn't exist originally. I created one with this:
Code:
#!/bin/sh

# /jffs/scripts/smb.postconf

CONFIG=$1

source /usr/sbin/helper.sh



pc_replace "comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5-HDD" $CONFIG

pc_replace "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5-HDD" $CONFIG

pc_replace "comment = TOSHIBA_1TB's SOFTWARE in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's SOFTWARE in TOSHIBA USB 3.5-HDD" $CONFIG

pc_replace "comment = TOSHIBA_1TB's TEMP in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's TEMP in TOSHIBA USB 3.5-HDD" $CONFIG
 

octopus

Part of the Furniture
that file doesn't exist originally. I created one with this:
Code:
#!/bin/sh

# /jffs/scripts/smb.postconf

CONFIG=$1

source /usr/sbin/helper.sh



pc_replace "comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's Download2 in TOSHIBA USB 3.5-HDD" $CONFIG

pc_replace "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's MOVIES in TOSHIBA USB 3.5-HDD" $CONFIG

pc_replace "comment = TOSHIBA_1TB's SOFTWARE in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's SOFTWARE in TOSHIBA USB 3.5-HDD" $CONFIG

pc_replace "comment = TOSHIBA_1TB's TEMP in TOSHIBA USB 3.5"-HDD" "comment = TOSHIBA_1TB's TEMP in TOSHIBA USB 3.5-HDD" $CONFIG
Isit working now?
 

octopus

Part of the Furniture

ColinTaylor

Part of the Furniture
The problem isn't with the smb.conf file.

The problem is with the data embedded within the USB device and the web code that displays it.
 

octopus

Part of the Furniture
Okay, I got the impression that the problem was an " in the comment file.
But I'm probably wrong, sorry about that. Then I'm out
 

usuario74

Occasional Visitor
The problem isn't with the smb.conf file.

The problem is with the data embedded within the USB device and the web code that displays it.
And do you think @RMerlin can do something about it or this issue was introduced by Asus?
Maybe tomorrow when I have a few hours with nobody at home I will back up every configuration on the router and then Reset it to stock ASUS firmware and see if the problem is there. Maybe try older ASUS firmwares for AX86U if I can find them,
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top