Difference between revisions of "File Server"

From LVL1
Jump to navigation Jump to search
Line 9: Line 9:
 
</pre>
 
</pre>
 
* create autofs config files
 
* create autofs config files
** /etc/auto.master
+
* /etc/auto.master
 
<pre>
 
<pre>
 
/mnt  /etc/auto.files    --timeout=6000    --ghost
 
/mnt  /etc/auto.files    --timeout=6000    --ghost
 
</pre>
 
</pre>
** /etc/auto.files
+
* /etc/auto.files
 
<pre>
 
<pre>
 
z    -fstype=smbfs,credentials=/etc/auto.auth    ://files/shared
 
z    -fstype=smbfs,credentials=/etc/auto.auth    ://files/shared
 
</pre>
 
</pre>
** /etc/auto.auth
+
* /etc/auto.auth
*** (replace CENSORED with the lvl1 credentials)
+
** (replace CENSORED with the lvl1 credentials)
 
<pre>
 
<pre>
 
username=CENSORED
 
username=CENSORED
 
password=CENSORED
 
password=CENSORED
 
</pre>
 
</pre>

Revision as of 22:59, 22 March 2013

Basic Info

  • Web interface at http://files/
  • Can also be accessed via samba/SMB with the standard lvl1 credentials.
  • ssh is also possible, but there is no safety check for accidentally deleting files this way.

Setting up on Ubuntu

  • Prerequisites:
sudo apt-get install autofs smbfs
  • create autofs config files
  • /etc/auto.master
/mnt   /etc/auto.files    --timeout=6000    --ghost
  • /etc/auto.files
z    -fstype=smbfs,credentials=/etc/auto.auth    ://files/shared
  • /etc/auto.auth
    • (replace CENSORED with the lvl1 credentials)
username=CENSORED
password=CENSORED