File Server: Difference between revisions
Jump to navigation
Jump to search
| Line 27: | Line 27: | ||
sudo chmod 400 /etc/auto.auth | sudo chmod 400 /etc/auto.auth | ||
sudo service autofs restart | sudo service autofs restart | ||
</pre> | |||
* the files share will be mounted in /mnt/z | |||
* to make this easily accessible, run | |||
<pre> | |||
ln -s /mnt/z ~/Desktop/z | |||
</pre> | </pre> | ||
Revision as of 22:02, 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
- 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