No access in Samba in MS-Win

536 views
Skip to first unread message

Olivier Zimmermann

unread,
Apr 7, 2014, 11:11:12 AM4/7/14
to al...@googlegroups.com
Hi,

At first, sorry for my english, and, thanks for this Alt-F, it seems to be better than the Dlink firmware, except that i got a problem :
Yesterday I updated my firmware with Alt-F, I had 2 x 500 Gb of datas, i can access in FTP correctly.

I have shared my datas in Services> Networks > Smb configure (see the screenshot), but i can't access in Windows 7 to my data :
-  \\192.168.0.101 do nothing. (MS error, can't reach this network folder).
- \\192.168.0.101\mnt same issue.
- \\192.168.0.101\mnt\md0 same issue.

My question is, did i miss something ?

Regards,
folders.png

João Cardoso

unread,
Apr 8, 2014, 4:36:30 PM4/8/14
to al...@googlegroups.com
Might Be.

-Zero, use the "first tour wizard", it was intended to show you what to do and that Alt-F it works if it is properly setup -- "It Just Works" what the comment of one user
-Zero and a half, read the online help and browse the forum -- there is even a top posted topic about this.
-First, don't define shares based on sub-shares;
-second, start with a subfolder of /mnt/md0;
-Third, if you get it working, report back, as there seems to exists some issues with win7 but no user has yet given the trouble to report back success of failure.

 

Regards,

Olivier Zimmermann

unread,
Apr 9, 2014, 3:00:53 PM4/9/14
to al...@googlegroups.com
Ok thanks,
I read the documentation, but after that, same issue.
So i decided to flash again my firmware, follow all the step of the Wizard, and then, it was working.
I don't know what i miss, maybe the folders permissions weren't good.

Thank you anyway, i thought i change my NAS, but i think i will keep him more years.

Regards,

Olivier

João Cardoso

unread,
Apr 9, 2014, 3:43:02 PM4/9/14
to


On Wednesday, April 9, 2014 8:00:53 PM UTC+1, Olivier Zimmermann wrote:
Ok thanks,
I read the documentation, but after that, same issue.

I just realized that I missed something:

The "first login/tour wizard", if followed, sets up a minimum empty working environment. "It just works" for the recently created user.

But most users have their data already on disk and want to make it available as they used to do under the D-Link firmware.
That can easily be done, defining new shares based on existing folders, just using Services->Network->smb->Configure.
However, they often fall into permission issues, as the existing files and folders have inadequate permissions and ownership.

Warning: "scientific content": E.g., if the "Receipts" folder was created under the D-Link firmware for the "joe" user and "account" group, they have its own user and group IDs (UID/GID), which are just numbers unknown to Alt-F (the UID/GUI are not the "joe" or "account" strings).
When the user creates a share based on it and allows the recently created "joe" user to access it, it thinks that's all it has to do, but that is not correct. Besides validating the user, Samba also looks at files ownership and permissions, and denies its access if they don't match the user/group identity. As the user and group ID of the files was created under D-Link, they don't match Alt-F UID/GID.
Samba doesn't ignore filesystem files and folders ownership and permissions, even if the share is defined to allow access to anybody!

The right solution for this is to (recursively) change existing files and folders ownership and permissions to the correct ones by hitting the Permissions button when using the Folders Browse (and reading the Permissions webUI online help first).

I will update the top posted Topic with this info

 
So i decided to flash again my firmware, follow all the step of the Wizard, and then, it was working.

So Win7 has no issues with Alt-F! Good to know.

Thanks for reporting back. 

You didn't need to reflash, a simple clever trick would rerun most of the "first login wizard":
0-Setup->users, Select each User and hit Delete; repeat for each Group.
1-System->Settings->ClearSettings
2-System->Utilities, Administering password, fill in the current password, then ChangePassword

I.e., The first login wizard runs when there are no saved settings and no webUI password is defined
Reply all
Reply to author
Forward
0 new messages