Cannot access Samba share: Permission denied

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page 1, 2  Next
Author Message
the_lab_cat
DD-WRT Novice


Joined: 12 Sep 2024
Posts: 14

PostPosted: Sat Oct 05, 2024 15:52    Post subject: Cannot access Samba share: Permission denied Reply with quote
I have a Linksys WRT1900AC with firmware v3.0-r58362 std (09/09/24). I have a USB stick plugged into the USB/eSATA port in the back.


Quote:
Disk Info
Disk Space /tmp/mnt/sda1
11%
12.3G / 114.6G
--- /dev/sda
Block device, size 114.6 GiB (123060879360 bytes)
DOS/MBR partition map
Partition 1: 114.6 GiB (123059830784 bytes, 240351232 sectors from 2048, bootable)
Type 0x0C (FAT32 (LBA))
SYSLINUX boot loader
FAT32 file system (hints score 5 of 5)
Volume size 114.6 GiB (123029749760 bytes, 3754570 clusters of 32 KiB)
Volume name "JRFD7"
/dev/sda not mounted Unsupported Filesystem
--- /dev/sda1
Block device, size 114.6 GiB (123059830784 bytes)
SYSLINUX boot loader
FAT32 file system (hints score 5 of 5)
Volume size 114.6 GiB (123029749760 bytes, 3754570 clusters of 32 KiB)
Volume name "JRFD7"
/dev/sda1 mounted to /tmp/mnt/sda1



When I try to access the share with or without the username and password on iOS Files, GNOME Nautilus (Fedora), or KDE Dolphin (Fedora), I can see the RouterShare folder, but I consistently get some sort of permission denied error when trying to open it. Dolphin actually shows the share files, but the dialogue asking for a username and password just keeps popping up no matter how many times I enter them (or leave them blank and just click OK), and clicking Cancel means I don't have permission to do anything with the files I can see.[/img]


Last edited by the_lab_cat on Mon Oct 07, 2024 21:10; edited 2 times in total
Sponsor
Sp1derman
DD-WRT User


Joined: 16 Jun 2006
Posts: 230
Location: Germany, BW

PostPosted: Sun Oct 06, 2024 19:38    Post subject: Reply with quote
should work if you remove the user wilbur.
I myself tried Samba with User/Password but never got it to work. Seems to be an ongoing issue if you search the forum.
the_lab_cat
DD-WRT Novice


Joined: 12 Sep 2024
Posts: 14

PostPosted: Mon Oct 07, 2024 21:11    Post subject: Reply with quote
Sp1derman wrote:
should work if you remove the user wilbur.
I myself tried Samba with User/Password but never got it to work. Seems to be an ongoing issue if you search the forum.


I removed the user, but it still didn’t work.
dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Thu Nov 14, 2024 11:51    Post subject: Reply with quote
It would appear that no one is interested in using Samba. This problem has existed for about a year but it hasn't been understood why the problem affects all Debian-based versions of Linux... I'm still with build 53633. This is the last build where Samba works correctly
the_lab_cat
DD-WRT Novice


Joined: 12 Sep 2024
Posts: 14

PostPosted: Thu Nov 14, 2024 14:20    Post subject: Reply with quote
dance85 wrote:
It would appear that no one is interested in using Samba. This problem has existed for about a year but it hasn't been understood why the problem affects all Debian-based versions of Linux... I'm still with build 53633. This is the last build where Samba works correctly

That doesn’t make sense. Firstly, Samba is by far the most popular network accessible storage system, even on Linux. Secondly, there are no Debian-based systems in the equation here; DD-WRT doesn’t appear to be a child distro from my research, and Fedora is famously Red Hat Enterprise Linux based, not Debian or Ubuntu.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16758
Location: Texas, USA

PostPosted: Thu Nov 14, 2024 16:11    Post subject: Reply with quote
Fedora replaced the "free" "community" version of Red Hat when it went Enterprise. So, your statement is backwards. Fedora is the development platform for RHEL. This happened ~20 years ago or so. "I was there" ... Cool
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
the_lab_cat
DD-WRT Novice


Joined: 12 Sep 2024
Posts: 14

PostPosted: Thu Nov 14, 2024 16:15    Post subject: Reply with quote
kernel-panic69 wrote:
Fedora replaced the "free" "community" version of Red Hat when it went Enterprise. So, your statement is backwards. Fedora is the development platform for RHEL. This happened ~20 years ago or so. "I was there" ... Cool

Well, can you at least agree that it’s not Debian based?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16758
Location: Texas, USA

PostPosted: Thu Nov 14, 2024 17:21    Post subject: Reply with quote
Nor is it Slackware-based. Slack, RedHat, and Debian are the three core distros. Pretty much everything else is based off one of those three, or a combination (i.e. Ubuntu (desktop) is derived from Progeny Debian, which was Ian Murdock's Frankenstein merge of using the RH anaconda installer, among other things).
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
the_lab_cat
DD-WRT Novice


Joined: 12 Sep 2024
Posts: 14

PostPosted: Thu Nov 14, 2024 17:24    Post subject: Reply with quote
kernel-panic69 wrote:
Nor is it Slackware-based. Slack, RedHat, and Debian are the three core distros. Pretty much everything else is based off one of those three, or a combination (i.e. Ubuntu (desktop) is derived from Progeny Debian, which was Ian Murdock's Frankenstein merge of using the RH anaconda installer, among other things).

Right. Don’t know how to say this, but I think you misunderstood what I was saying. I did mean to convey that Fedora was based on RHEL, not the other way around.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2152
Location: WV, USA

PostPosted: Thu Nov 14, 2024 17:41    Post subject: Reply with quote
the_lab_cat wrote:
Don’t know how to say this, but I think you misunderstood what I was saying. I did mean to convey that Fedora was based on RHEL, not the other way around.

Just to be clear, RHEL forks from Fedora. Silverblue (previously CentOS) forks from RHEL.

With that said, Fedora 39 connects fine to three of my DD-WRT routers running Samba. All with a username and password. Two MX4300s and one EA8500. All running r58662.

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16758
Location: Texas, USA

PostPosted: Thu Nov 14, 2024 18:28    Post subject: Reply with quote
Rolling Eyes

https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux
https://en.wikipedia.org/wiki/Red_Hat_Linux

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
the_lab_cat
DD-WRT Novice


Joined: 12 Sep 2024
Posts: 14

PostPosted: Thu Nov 14, 2024 18:44    Post subject: Reply with quote
lexridge wrote:
the_lab_cat wrote:
Don’t know how to say this, but I think you misunderstood what I was saying. I did mean to convey that Fedora was based on RHEL, not the other way around.

Just to be clear, RHEL forks from Fedora. Silverblue (previously CentOS) forks from RHEL.

With that said, Fedora 39 connects fine to three of my DD-WRT routers running Samba. All with a username and password. Two MX4300s and one EA8500. All running r58662.


I’ll apply that current build, but can you post your settings?
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2152
Location: WV, USA

PostPosted: Thu Nov 14, 2024 20:08    Post subject: Reply with quote
the_lab_cat wrote:
I’ll apply that current build, but can you post your settings?

Of course.

The EA8500 is able to share the root of both shares without issue. The MX4300s can only share a subdir for some odd reason. Just thought to mention this in case you run into this oddity.



ea8500-samba.png
 Description:
 Filesize:  52.49 KB
 Viewed:  6075 Time(s)

ea8500-samba.png



mx4300-samba.png
 Description:
 Filesize:  44.94 KB
 Viewed:  6075 Time(s)

mx4300-samba.png



_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
300000
DD-WRT Novice


Joined: 18 Aug 2011
Posts: 29

PostPosted: Sun Nov 17, 2024 0:07    Post subject: Reply with quote
You need go to tab Administration and choose commands add this start up code and click save start up . after that reboot router it should work

Code:

# Configure samba
mkdir -p /tmp/etc/samba
echo "
[global]

     
local master = yes
preferred master = yes
unix charset = UTF-8
display charset = UTF-8
oplocks = yes
large readwrite = yes
server multi channel support = yes
          socket options = IPTOS_LOWDELAY SO_RCVBUF=101072 SO_SNDBUF=101072 TCP_NODELAY
         min receivefile size = 12384
          aio read size = 0
          aio write size = 0
          write cache size = 10024000
          read raw = yes
          write raw = yes
          getwd cache = yes
          oplocks = yes
          max xmit = 52768
          dead time = 15
        large readwrite = yes
        use sendfile = yes
        writeable = yes
   public = yes

   netbios name = DD-WRT
   workgroup = WORKGROUP
   server string = DD-WRT
   syslog = 10
        name resolve order = wins lmhosts host bcast
   obey pam restrictions = yes
   socket options = TCP_NODELAY
   preferred master = no
   os level = 20
   wins support = yes
        wins server = 192.168.20.1
   security = share
   guest account = nobody
   invalid users = root, mail, deamon, reboot
   null passwords = yes
   guest only = yes   
   map to guest = Bad User
              encrypt passwords = true
   passdb backend = smbpasswd
   security = user
   null passwords = no
   guest only = no   
   smb passwd file = /tmp/etc/samba/smbpasswd

   private dir = /tmp/etc/samba/
   lock directory = /var/lock/
   pid directory = /var/run/

   unix charset = UTF-8
   dos charset = UTF-8
   map archive = No
   map hidden = No
   map system = No

[Share]
   path = /mnt/
   read only = no
   create mask = 0777
   directory mask = 0777
available = yes
browsable = yes
public = yes
writeable = yes





" > /tmp/etc/samba/smb.conf

# Add user for samba
# guest user
grep -q nobody /etc/passwd || echo 'nobody:x:65534:65534:nobody:/mnt:/bin/false' >> /etc/passwd

mount -o bind /tmp/etc /etc

# clear samba user if exists
echo "" > /tmp/etc/samba/smbpasswd

# guest user
grep -q nobody /etc/passwd || echo 'nobody:x:65534:65534:nobody:/mnt:/bin/false' >> /etc/passwd

# add user: username=share, password=sharepassword
grep -q share /etc/passwd || echo 'share:x:65534:65534:nobody:/mnt/:/bin/false' >> /etc/passwd
smbpasswd share sharepassword

umount /etc


stopservice samba3
startservice samba3
the_lab_cat
DD-WRT Novice


Joined: 12 Sep 2024
Posts: 14

PostPosted: Fri Dec 13, 2024 14:54    Post subject: Reply with quote
lexridge wrote:
the_lab_cat wrote:
I’ll apply that current build, but can you post your settings?

Of course.

The EA8500 is able to share the root of both shares without issue. The MX4300s can only share a subdir for some odd reason. Just thought to mention this in case you run into this oddity.


The first difference I noticed is that your folder paths do not go to /tmp/mnt. How would I direct to a connected USB media with your settings, or is the media under those?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum