Posted: Sat May 22, 2021 18:00 Post subject: USB flashdrive is not sharing anymore r6700v3
Hi to all, for some time I dont understand what happened but I'm having problems with accessing my usb stick mounted in dd-wrt router. From windows machines I see the dd-wrt router in the network but once I click on it, it appears to me to be wrong and opens the diagnostics. i formatted the usb stick in ext3 again and remounted on the router, but nothing has changed.
DD-WRT v3.0-r45820 std on board
this is my smb.conf on the usr/tmp folder:
Code:
[global]
log level = 1
netbios name = DD-WRT
server string = dd-wrt
syslog = 10
encrypt passwords = true
preferred master = yes
use sendfile = yes
aio read size = 2048
aio write size = 2048
large readwrite = yes
security = user
oplocks = yes
mangled names = no
max stat cache size = 64
workgroup = workgroup
bind interfaces only = yes
guest account = nobody
map to guest = Bad User
smb passwd file = /var/samba/smbpasswd
private dir = /var/samba
passdb backend = smbpasswd
log file = /var/smbd.log
max log size = 1000
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=262144 SO_RCVBUF=262144
read raw = yes
write raw = yes
max xmit = 65536
dead time = 15
getwd cache = yes
lpq cache time = 30
server min protocol = SMB2_10
server max protocol = SMB3_11
printing = none
load printers = No
usershare allow guests = Yes
smb3 encryption = no
[Flashdrive]
comment = Flashdrive
path = /mnt/sda1/
read only = no
guest ok = yes
Just to add a bit, on apps with android samba I can regularly access the shared folder. At this point I think that it gives a problem with windows machines, but nothing has changed since the last time it worked regularly
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Thu May 27, 2021 14:49 Post subject: Re: USB flashdrive is not sharing anymore r6700v3
andrea_m83 wrote:
Hi to all, for some time I dont understand what happened but I'm having problems with accessing my usb stick mounted in dd-wrt router. From windows machines I see the dd-wrt router in the network but once I click on it, it appears to me to be wrong and opens the diagnostics. i formatted the usb stick in ext3 again and remounted on the router, but nothing has changed.
Code:
....
[Flashdrive]
comment = Flashdrive
path = /mnt/sda1/
read only = no
guest ok = yes
force user = root
Just my guess:
Was it a password issue? Window$ remembers login settings.... And the in-kernel Samba no longer accepts blank password, including public guest shares.
BTW, did you enable CTF forwarding?
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Hi mwchang, my windows credentials all just reset, tcp/ip settings too, but never changed.
Another strange thing is that I am able to access the smba app only in anonymous mode. if I add a user it doesn't work...
How to see CTF forwarding if enabled?
I have just upgraded with the last release r46816 std, now it shows the share authentication splash, but the password doesn't work like it did before. An other strange thing is that I can't even access the router dir and retrieve the samba files as I did previously with WinSCP.
ProFTPd is enabled, tried with anonymous login too
I can't explain what happened, all the machines on the net have the same problem accessing the dd-wrt, give me a hand please
Posted: Wed Jun 02, 2021 22:47 Post subject: Re: USB flashdrive is not sharing anymore r6700v3
kernel-panic69 wrote:
mwchang wrote:
Was it a password issue? Window$ remembers login settings.... And the in-kernel Samba no longer accepts blank password, including public guest shares.
I thought this was pretty clear.
I am not understanding, I also added a user under Services-> NAS-> File Sharing, but the file smbpasswd is still empty and obviously does not let me access the share.
Posted: Tue Jun 15, 2021 23:43 Post subject: Help me!!!
Guys, you have to help me ... I'm going crazy! I'm trying them all, I continue updating the router's fw, but this problem of accessing the samba share persists from any windows machine and even from android
Posted: Wed Jun 16, 2021 20:34 Post subject: Re: Help me!!!
andrea_m83 wrote:
Guys, you have to help me ... I'm going crazy! I'm trying them all, I continue updating the router's fw, but this problem of accessing the samba share persists from any windows machine and even from android
My experience is you must have at least two (2) usernames and passwords in samba. I can see the files, I can delete files, I can access the files but I cannot add files across the network.
Posted: Tue Jun 22, 2021 22:56 Post subject: Re: Help me!!!
Abboo wrote:
andrea_m83 wrote:
Guys, you have to help me ... I'm going crazy! I'm trying them all, I continue updating the router's fw, but this problem of accessing the samba share persists from any windows machine and even from android
My experience is you must have at least two (2) usernames and passwords in samba. I can see the files, I can delete files, I can access the files but I cannot add files across the network.
I didn't expect it but it really works, only the second user set. I can add and delete files, thanks! but, request to all, is it a bug?!?!
Posted: Thu Jun 24, 2021 19:37 Post subject: Re: Help me!!!
andrea_m83 wrote:
Abboo wrote:
andrea_m83 wrote:
Guys, you have to help me ... I'm going crazy! I'm trying them all, I continue updating the router's fw, but this problem of accessing the samba share persists from any windows machine and even from android
My experience is you must have at least two (2) usernames and passwords in samba. I can see the files, I can delete files, I can access the files but I cannot add files across the network.
I didn't expect it but it really works, only the second user set. I can add and delete files, thanks! but, request to all, is it a bug?!?!
Hi! Samba shares are always bound to a user and more often than not multiple logins by the same user to access the same shares is disallowed.
If you set up Samba on a Linux system the shares are almost always bound to a local account and I believe this is part of the convention now with Samba.
Create a unique login account for each device accessing particular shares and it will solve a lot of your headaches and problems.
Upgraded to r47842 and again the problem recurs this time it doesn't even work in anonymous mode. Formatted the pendrive, created two users, the error message tells me that I am not authorized to access the resources.