Re: [Samba] Hide empty Samba shares?
On Wed, Sep 05, 2012 at 09:12:11PM -0500, Stan Hoeppner wrote: On 9/5/2012 9:23 AM, Sam Bulka wrote: Stan Hoeppner stan at hardwarefreak.com Samba is not MS Windows. Just because a feature exists in MS Windows does not make it basic translated expected in other platforms. If you were a long time Samba/*nix user and switched to MS Windows you'd have the same complaint in reverse (though there are few such defections). Samba was initially developed by watching Windows network protocol to allow share files btw Linux and Windows. Of course its expected to offer basic features Windows users are used to when sharing files with Windows. Yes, of course, and it does. But you're missing the point. The feature in question isn't part of the SMB/CIFS protocol stack, thus Samba can't duplicate it. It's an operating system specific feature implemented in, and unique to, MS Windows. Microsoft controls both their SMB/CIFS code stack and their operating system code. Thus they are free to create internal proprietary interfaces between the two that provide unique functionality. The Samba team doesn't control the Linux, *BSD, AIX, Solaris, etc operating system code, so they can't simply add the interfaces to each OS that are necessary to implement what you call the basic functionality that Microsoft provides. It's not basic functionality at all, but extended functionality, as it's not part of the SMB/CIFS stack. It's proprietary. I'm guessing that due to your lack of knowledge of software development models that you didn't understand anything I just stated above. So I'll boil it down to this: If you critically need this feature, switch back to MS Windows. It will likely never be implemented in a Samba+OS stack. Well, what we might be able to do is to add a scripting interface to the available parameter that is checked every time the share is about to be accessed. This would give a flexible interface to whatever the OS provides. Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kont...@sernet.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Hide empty Samba shares?
--- Forwarded message --- From: Volker Lendecke volker.lende...@sernet.de Well, what we might be able to do is to add a scripting interface to the available parameter that is checked every time the share is about to be accessed. This would give a flexible interface to whatever the OS provides. Volker Thanks Volker, Hope you're engaged in Samba development and eager to implement your approach to address this issue. Who would be able to use this scripting interface and how - some example? I'm indeed stupid, but not THAT MUCH as Stan seems to imply. :) Sam -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Hide empty Samba shares?
Stan Hoeppner stan at hardwarefreak.com Samba is not MS Windows. Just because a feature exists in MS Windows does not make it basic translated expected in other platforms. If you were a long time Samba/*nix user and switched to MS Windows you'd have the same complaint in reverse (though there are few such defections). Samba was initially developed by watching Windows network protocol to allow share files btw Linux and Windows. Of course its expected to offer basic features Windows users are used to when sharing files with Windows. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Hide empty Samba shares?
On 9/5/2012 9:23 AM, Sam Bulka wrote: Stan Hoeppner stan at hardwarefreak.com Samba is not MS Windows. Just because a feature exists in MS Windows does not make it basic translated expected in other platforms. If you were a long time Samba/*nix user and switched to MS Windows you'd have the same complaint in reverse (though there are few such defections). Samba was initially developed by watching Windows network protocol to allow share files btw Linux and Windows. Of course its expected to offer basic features Windows users are used to when sharing files with Windows. Yes, of course, and it does. But you're missing the point. The feature in question isn't part of the SMB/CIFS protocol stack, thus Samba can't duplicate it. It's an operating system specific feature implemented in, and unique to, MS Windows. Microsoft controls both their SMB/CIFS code stack and their operating system code. Thus they are free to create internal proprietary interfaces between the two that provide unique functionality. The Samba team doesn't control the Linux, *BSD, AIX, Solaris, etc operating system code, so they can't simply add the interfaces to each OS that are necessary to implement what you call the basic functionality that Microsoft provides. It's not basic functionality at all, but extended functionality, as it's not part of the SMB/CIFS stack. It's proprietary. I'm guessing that due to your lack of knowledge of software development models that you didn't understand anything I just stated above. So I'll boil it down to this: If you critically need this feature, switch back to MS Windows. It will likely never be implemented in a Samba+OS stack. -- Stan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Hide empty Samba shares?
On Sat, Sep 01, 2012 at 03:52:38PM -0400, Sam Bulka wrote: When a partition mounted to a shared by Samba folder is dismounted, Samba keeps sharing that empty folder. It creates a security hazard, since files can still be saved to that empty folder, and overwritten next time (lost) when the original partition is auto mounted again to the same folder. Its also confusing for most users to browse empty shares - no normal person would understand why they are still there. Is it possible to configure Samba to hide corresponding shares, once the attached drive is dismounted or switched off? If not, is there any reason or logic, why such basic functionality is not offered? You'll need to script this yourself by issuing removing the share entry from smb.conf and using smbcontrol to close client connections to that share and reload the config file. Samba doesn't have logic to hook into your specific UNIX's method of notifying dismounts (if it even has one). Also, it's not a security hazard, as the admin - don't do that :-). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Hide empty Samba shares?
On 9/1/2012 2:52 PM, Sam Bulka wrote: When a partition mounted to a shared by Samba folder is dismounted, Mount/unmount is performed on filesystems, not partitions. Samba keeps sharing that empty folder. It creates a security hazard, since files can still be saved to that empty folder, and overwritten next time (lost) when the original partition is auto mounted again to the same folder. Its also confusing for most users to browse empty shares - no normal person would understand why they are still there. No normal person would dismount a filesystem from underneath a Samba share. is there any reason or logic, why such basic functionality is not offered? Samba is not MS Windows. Just because a feature exists in MS Windows does not make it basic translated expected in other platforms. If you were a long time Samba/*nix user and switched to MS Windows you'd have the same complaint in reverse (though there are few such defections). -- Stan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Hide empty Samba shares?
When a partition mounted to a shared by Samba folder is dismounted, Samba keeps sharing that empty folder. It creates a security hazard, since files can still be saved to that empty folder, and overwritten next time (lost) when the original partition is auto mounted again to the same folder. Its also confusing for most users to browse empty shares - no normal person would understand why they are still there. Is it possible to configure Samba to hide corresponding shares, once the attached drive is dismounted or switched off? If not, is there any reason or logic, why such basic functionality is not offered? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba