[opensuse] 42.1, with simple samba, trying to hide one directory inside a share, coop with windows users
Hi, feeling like a complete newbie here, and I had thought I did know something in this universe already. Apparently not :( Following <https://www.samba.org/samba/docs/using_samba/ch08.html> and looking a bit at <https://wiki.samba.org/index.php/Shares_with_Windows_ACLs> and following various google instant search suggestions where people apparently having the same situation. I have one user on the linux machine, which exists as a network user on some windows machines as well. Simple workgroup. Windows machines connecting to a "network drive letter" from their windows. All to this same share. This share used to be on some win7 machine before, needed to move over to the leap 42.1 machine. One directory while living on windows, had the +h hidden attribute. Eventually I found the "map hidden = true" config setting with samba, and I only need this hidden property of that subfolder, so that it doesnt appear when the windows users browse that share. Only to find out that no matter what kind of masks and all that I set, the hidden property e.g. via ttrib driveletter:\foldername never shows up as hidden and dir driveletter:\ always shows that foldername as visible. Via Windows gui explorer.exe setting the folders property as hidden, doesnt affect anything either, it doesnt stay hidden, stay being the wrong word, the checkbox doesnt stay ticked, when revisiting the folders properties. the checkbox never gets applied to the actual filesystem of the samba. First and foremost am I completely mistaken, that when setting via ssh and terminal directly on the linux machine, the world execute properties of that folder path chmod o+x /file/path/to/samba/share/foldername should this render that foldername folder actually as invisible when I have that map hidden = true setting in my smb.conf? Because this doesnt work either. So where does samba store this mapping if not in the actual filesystem unix flags, it can live nowhere else or am I misunderstanding what this "map" is supposed to mean? Or is this some flaw in the leap 42.1 samba? I have: samba-4.2.4-21.3.x86_64 and I am on Linux linux 4.1.34-33-default What am I doing wrong? Thank you a lot. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
cagsm wrote:
Only to find out that no matter what kind of masks and all that I set, the hidden property e.g. via ttrib driveletter:\foldername never shows up as hidden and dir driveletter:\ always shows that foldername as visible.
Via Windows gui explorer.exe setting the folders property as hidden, doesnt affect anything either, it doesnt stay hidden, stay being the wrong word, the checkbox doesnt stay ticked, when revisiting the folders properties. the checkbox never gets applied to the actual filesystem of the samba.
Have you tried the "hide unreadable" and making the directory unreadable to to the users? I haven't tried it, but I had a case of looking for a directory in a share and not being able to find it. When I looked on the server, it turns out that the directory I was looking for was a symlink to another file system that wasn't mounted. Thus it wasn't accessible and samba didn't show the broken link. Indeed -- if I unmount that file system, the thing I see as a directory in windows explorer (a link to some dir on a "/local" mount that I unmounted), goes away. It also comes back when I remounted the file system. Note, I allow my user's to manage "wide links" (symlinks) in directories they own via the "unix extensions" feature. As a result, cross-share widelinks work in my environment due to setting of the "allow insecure widelinks" (even though there is no such thing in my setup). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Oct 25, 2016 at 10:33 PM, Linda Walsh <suse@tlinx.org> wrote:
Have you tried the "hide unreadable" and making the directory unreadable to to the users? I haven't tried it, but I had a case of looking for a directory in a share and not being able to find it. When I looked on the server, it turns out that the directory I was looking for was a symlink to another file system that wasn't mounted. Thus it wasn't accessible and samba didn't show the broken link. Indeed -- if I unmount that file system, the thing I see as a directory in windows explorer (a link to some dir on a "/local" mount that I unmounted), goes away. It also comes back when I remounted the file system. Note, I allow my user's to manage "wide links" (symlinks) in directories they own via the "unix extensions" feature. As a result, cross-share widelinks work in my environment due to setting of the "allow insecure widelinks" (even though there is no such thing in my setup).
well I have only tried to do the very simple things here which is exactly what I want and what the samba documentation talks about, making that hidden attributed respected and translated into the samba world. and it just doesnt work i dont want to add fancy tricks or create a huge problem about such a simple thing as to set a hidden attribute to a directory object i didnt think that in 2016 i would still come across such problems :( -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
cagsm
-
Linda Walsh