Answers to: secure automatic connection to MS-Windows file share (cifs)http://linuxexchange.org/questions/2793/secure-automatic-connection-to-ms-windows-file-share-cifs<p>I can mount a windows file share with <code>sudo mount -t cifs -o credentials=~/Files/server-mount/credentials //sbs2008/local ~/Files/server-mount/</code>. I would like to do this but:</p> <ul> <li><strike>Without root privileges.</strike> (I can do this one, if I solve the other two.)</li> <li>Without storing password, unencrypted.</li> <li>Automatically on login.</li> </ul> <p>I am using kubuntu 11.10</p>enTue, 17 Apr 2012 07:56:42 -0400Answer by Seth Brownhttp://linuxexchange.org/questions/2793/secure-automatic-connection-to-ms-windows-file-share-cifs/2832<p>I could be wrong but I think the mount command ALWAYS requires root privileges to run.</p> <p>The best you can do, is to make ~/Files/server-mount/credentials read-only by root and do not share the root password.</p>Seth BrownTue, 17 Apr 2012 07:56:42 -0400http://linuxexchange.org/questions/2793/secure-automatic-connection-to-ms-windows-file-share-cifs/2832Answer by Ronhttp://linuxexchange.org/questions/2793/secure-automatic-connection-to-ms-windows-file-share-cifs/2795<p>Without root privileges - Setup the share in fstab</p> <p>Without storing password - Make the "Everyone" user available with full access in the advanced permissions (sharing) on Windows PC</p> <p>Automatically on login - Setup the share in fstab</p>RonWed, 29 Feb 2012 18:10:53 -0500http://linuxexchange.org/questions/2793/secure-automatic-connection-to-ms-windows-file-share-cifs/2795