Lan plugin - rejected by share access mask

Support for Android version of Total Commander

Moderators: Hacker, petermad, Stefan2, white

Post Reply
IcePlanet
Junior Member
Junior Member
Posts: 2
Joined: 2025-04-26, 19:31 UTC

Lan plugin - rejected by share access mask

Post by *IcePlanet »

Tried to copy file from phone to shared drive using LAN plugin.

I see error:

Code: Select all

smbd_calculate_access_mask_fsp: Access denied on file mnt/usb/Fly/2/S2.7z: rejected by share access mask[0x001F00A9] orig[0x0000008B] mapped[0x0000008B] rejec
All other Windows, LInux machines use the same share (it is central NAS). All other machines can READ and WRITE from/to the share (the share is accessible without password).

Only LAN plugin can not write to the share. READ works correctly.

Share is setup like this (Samba config file on nas):

Code: Select all

[Fly]
        comment = The USB FLY drive
        path = /media/usb
        guest ok = Yes
        read only = No
        valid users = root kdshare
        admin users = root
        force create mode = 0600
        force directory mode = 0700
        wide links = yes
        follow symlinks = yes
On windows machine it is connected like this and it always works:

Code: Select all

net use F: \\192.168.3.8\Fly\Fly /persistent:no
I believe (lets say I'm 90% confident) that one year ago it was working without problem. But I use write from phone to NAS very rarely so have no info when it might stopped working/why....

Tried search on internet, but was not able to find anything reasonable.

Any ideas what I have wrongly configured? Is this bug? Has anyone seen something similar?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lan plugin - rejected by share access mask

Post by *ghisler(Author) »

Maybe the plugin is logged in as a guest? It tries this when login with the provided user name and password fails.
Try changing
guest ok = Yes
to
guest ok = No
Author of Total Commander
https://www.ghisler.com
IcePlanet
Junior Member
Junior Member
Posts: 2
Joined: 2025-04-26, 19:31 UTC

Re: Lan plugin - rejected by share access mask

Post by *IcePlanet »

I changed as per your recommendation.

The connection works same ways as before - read only access. When I try from Windows or linux machine the disk is perfectly writable.
I created completely new user account to test and again windows/linux connection is perfectly OK, but the Android refuses to write, I can see content, read, but can not write.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lan plugin - rejected by share access mask

Post by *ghisler(Author) »

It could be an incompatibility between your specific Samba server version and the smbj library I use in the LAN plugin.
Maybe a different file manager for Android will work with your server.
Author of Total Commander
https://www.ghisler.com
Post Reply