File Server

From LVL1
Jump to navigation Jump to search

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
  • run the following:
sudo chmod 400 /etc/auto.auth
sudo service autofs restart
  • the files share will be mounted in /mnt/z
  • to make this easily accessible, run
ln -s /mnt/z ~/Desktop/z