Changes

Windows network share integration for linux

1,124 bytes added, 21:55, 3 June 2015
/* Persistent Mount in fstab */
The following lines were added (+) and removed (-):
We still have the exposing of your windows network security credentials issue.  By using a credentials file we can hide the password. vi ~/.smbcredentialsEnter the username and password username=nicole password=mythtvChange the permissions of the file to prevent unwanted access to your credentials: chmod 600 ~/.smbcredentialsNow edit fstab vi /etc/fstabUse: //athena/public/ /mnt/public cifs domain=workgroup,credentials=/home/ubuntuusername/.smbcredentials,uid=1001,iocharset=utf8,sec=ntlm 0 0 //athena/media/ /mnt/media cifs domain=workgroup,credentials=/home/ubuntuusername/.smbcredentials,uid=1001,iocharset=utf8,sec=ntlm 0 0Another security implementation to explore is using libpam_mount which may not work in Ubuntu 14.04 and is not covered here.We still have the problem of all of our linux desktop users having access to the windows share as the one windows network user.  One workaround is to mount during the login process rather than at boot.  However, the mount then remains even after the user logs off.  The system would need to be rebooted or the mount manually removed before logging out.
Bureaucrat, administrator
16,192
edits