Changes

Windows network share integration for linux

977 bytes added, 06:30, 14 June 2021
/* Ubuntu Nautilus Click to Mount */
The following lines were added (+) and removed (-):
Samba was developed in the early 1990s as a way for Linux users to access windows shares as well as enabling the use of a Linux file server to emulate a Windows file server.  In over 20 years a lot of exciting things have happened in the development of SMB/CIFS networking protocol support in Linux.  However, one major achievement has been completely neglected.  If a user wishes to have seamless mounting and access to a Windows share, under his own linux desktop login name to the windows network share of the same login name, independent of each login, and persistent after reboot, then there is no simple solution.Samba was developed in the early 1990s as a way for Linux users to access windows shares as well as enabling the use of a Linux file server to emulate a Windows file server.  In over 20 years a lot of exciting things have happened in the development of [[Linux CIFS Utils and Samba]].  However, one major achievement has been completely neglected.  If a user wishes to have seamless mounting and access to a Windows share, under his own linux desktop login name to the windows network share of the same login name, independent of each login, and persistent after reboot, then there is no simple solution.# Browse Network in Ubuntu Nautilus and click to mount# Browse Network with Nautilus and click to mount via gvfsNote: The creation of persistent mounts using fstab will work in any distribution.  Discussion on GVFS applies to the GNOME desktop and thus distributions using GNOME and gvfs.  For KDE users the equivalent is KIO (kio).  KIO does not make mount points available to non-KIO applications.  Relates to: dolphin / konqueror / kio-smbWhat the hell is that?  Who's going to want to find that or type all that in?  It cannot be accessed directly in console as root.What the hell is that?  Nautilus uses GVFS to connect on-demand to the windows share.  GVFS is the virtual filesystem for the GNOME desktop.  GVFS and CIFS work together to mount the share in a temporary gvfs path. Who's going to want to find that or type all that in?  It cannot be accessed directly in console as root.== Mount via manual execute of mount command ==CLI solution, execute the mount command or create a shell script that mounts multiple network drives.  This way passwords need not be present in fstab or somewhere easily readable by other system users.examples: sudo mount -t cifs -o username= //WIN_SHARE_IP/ /mnt/WIN_SHARE sudo mount -t cifs -o username=nicolep //192.168.1.10/public /mnt/public sudo mount -t cifs -o username=nicolep //servername/public /mnt/publiccoming soon...Use ~/.xprofile, this is sourced by at least the GDM, LDM, LightDM and LXDM login managers.Ubuntu 14.04 uses upstart tasks.  ~/.config/upstart/desktopOpen.conf ~/.config/upstart/desktopClose.conf  Goal: When user 'nicole' logs into her linux desktop x session a script mounts all her cifs shares using her network security credentials.  Now, during her x session she has access to the shares throughout the duration of the session.  When she logs out then a script unmounts the shares.== Development Changes ==Ubuntu devs plan to discontinue use of Nautilus soon, mostly because the folks that make Nautilus have gone astray. KDE uses Konqueror and before that KFM.  Each have different ways of handling network browsing.  Some of the documentation here may remain current longer than other parts.  Readers are invited to edit this page to help maintain up-to-date documentation.== Dear Ubuntu Developers ==Status: Theoretical. I have not had time to put this together and test. Once done I will document the configuration here.Or "developers of Gnome, Unity, KDE, whatever Linux distribution that is underlying..."A method is needed to configure and provide a seamless login so that when the system user authenticates on the workstation via the graphical login, any CIFS shares can be restored and remain active though the session.  It is reasonable to have the workstation username match that of the network username for simplicity.  I know this configuration is possible with the correct combination of login scripts and using something like Smbclient, however, this is not simple for the average desktop user.  Since this stuff is constantly changing, something seamless and built into the GUI experience would be a plus.Another option to try is to use the "gvfs-mount" command on login.  gvfs-mount smb://servername/share/   more to come... == Development Changes ==Ubuntu devs plan to discontinue use of Nautilus soon, mostly because the folks that make Nautilus have gone astray.  KDE uses Konqueror and before that KFM.  Each have different ways of handling network browsing.  Some of the documentation here may remain current longer than other parts.  Readers are invited to edit this page to help maintain up-to-date documentation.EOF
Bureaucrat, administrator
16,192
edits