
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>http://sede.giberti.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Automount_linux_ubuntu_directory_windows</id>
	<title>Automount linux ubuntu directory windows - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="http://sede.giberti.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Automount_linux_ubuntu_directory_windows"/>
	<link rel="alternate" type="text/html" href="http://sede.giberti.net/mediawiki/index.php?title=Automount_linux_ubuntu_directory_windows&amp;action=history"/>
	<updated>2026-04-09T14:16:20Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>http://sede.giberti.net/mediawiki/index.php?title=Automount_linux_ubuntu_directory_windows&amp;diff=14&amp;oldid=prev</id>
		<title>Francesco: Creata pagina con &quot;Mount password protected network folders The quickest way to auto-mounting a password-protected share is to edit /etc/fstab (with root privileges), to add this line:  //servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8  0  0 This is not a good idea however: /etc/fstab is readable by everyone and so is your Windows password in it. The way around this is to use a credentials file. This is a file that contains just the u...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sede.giberti.net/mediawiki/index.php?title=Automount_linux_ubuntu_directory_windows&amp;diff=14&amp;oldid=prev"/>
		<updated>2023-11-22T06:36:40Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;quot;Mount password protected network folders The quickest way to auto-mounting a password-protected share is to edit /etc/fstab (with root privileges), to add this line:  //servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8  0  0 This is not a good idea however: /etc/fstab is readable by everyone and so is your Windows password in it. The way around this is to use a credentials file. This is a file that contains just the u...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Mount password protected network folders&lt;br /&gt;
The quickest way to auto-mounting a password-protected share is to edit /etc/fstab (with root privileges), to add this line:&lt;br /&gt;
&lt;br /&gt;
//servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8  0  0&lt;br /&gt;
This is not a good idea however: /etc/fstab is readable by everyone and so is your Windows password in it. The way around this is to use a credentials file. This is a file that contains just the username and password.&lt;br /&gt;
&lt;br /&gt;
Using a text editor, create a file for your remote servers logon credential:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
gedit ~/.smbcredentials&lt;br /&gt;
Enter your Windows username and password in the file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
username=msusername&lt;br /&gt;
password=mspassword&lt;br /&gt;
Save the file, exit the editor.&lt;br /&gt;
&lt;br /&gt;
Change the permissions of the file to prevent unwanted access to your credentials:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
chmod 600 ~/.smbcredentials&lt;br /&gt;
Then edit your /etc/fstab file (with root privileges) to add this line (replacing the insecure line in the example above, if you added it):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//servername/sharename /media/windowsshare cifs credentials=/home/ubuntuusername/.smbcredentials,iocharset=utf8 0 0 &lt;br /&gt;
Save the file, exit the editor.&lt;br /&gt;
&lt;br /&gt;
Finally, test the fstab entry by issuing:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo mount -a&lt;br /&gt;
If there are no errors, you should test how it works after a reboot. Your remote share should mount automatically.&lt;/div&gt;</summary>
		<author><name>Francesco</name></author>
	</entry>
</feed>