Univention Bugzilla – Bug 48541
Hide "windows-profiles" in home share
Last modified: 2019-05-15 14:52:17 CEST
Imho we should hide the folder "windows-profiles" in the home share to prevent any unintentional fiddling with the profile files and to reduce confusion ("why are there a dozen strangely named folders in my home share?") I guess the "hide files" feature (see man smb.conf) should do the job.
Created attachment 9838 [details] Patch for samba base.conf template to hide windows-profiles in homes by default "hide files" is sufficient for this imo. I tried setting it manually via smb.conf as a global option. After a /etc/init.d/samba restart all folders/files matching windows-profiles were hidden. I tried setting the parameter via UCR ucr set samba/global/options/"hide files"="/windows-profiles/" but unfortunately this not only adds the global hide files parameter set correctly to /windows-profiles/ but also an empty hide files parameter to all other sections (including homes) which seems to overwrite the global parameter. However I like Michaels idea to just hide windows-profiles by default. I can't think of any scenario where it's visibility is required right now. Also if someone *really* wanted to mess with it, they could still open the path manually. This patch adds a hide files parameter to the default homes definition in /etc/univention/templates/files/etc/samba/base.conf After a /etc/init.d/samba restart it hid windows-profiles from the users on Win 7, Win 10 and Nextcloud in my test env.
Created attachment 9839 [details] Patch for samba base.conf template to hide windows-profiles in homes by default Wrong indentation
So today a teacher deleted their whole profile folder, because they thought it was an unnecessary and unwanted folder. As a consequence, the whole roaming profiles process was stuck, which caused some extensive troubleshooting in the customers first level support. We really should hide this folder.
Successful build Package: univention-samba4 Version: 8.0.0-18A~4.4.0.201904161150 Branch: ucs_4.4-0 Scope: errata4.4-0 Successful build Package: univention-samba Version: 13.0.0-3A~4.4.0.201904161143 Branch: ucs_4.4-0 Scope: errata4.4-0 46a7913528 Bug #48541: Hide windows-profiles as default I added the "hide files" feature to the samba base.conf template file. Adding an ucr variable to hide this folder is not necessary in my opinion, since one can always make the folder visible again by using the "show hidden files" option in windows "folder options".
Verifed: * Update: Ok * Function test: Ok * Advisory: Ok
<http://errata.software-univention.de/ucs/4.4/105.html> <http://errata.software-univention.de/ucs/4.4/106.html>