Changes

From Amahi Wiki
Jump to: navigation, search
*Open a "terminal" window on the host server and "su" to the "root" ID (administrator).
*Install the WebDav client for the workstation distrubution.
<blockquote>{{Code|<pre>yum install davfs2}}</pre>
</blockquote>
*Add the ownCloud user(s) you want to be able to mount the share to "davfs2".
<blockquote>{{Code|<pre>usermod -aG davfs2 test}}</pre>
</blockquote>
*Edit /etc/fstab. Add the following line for each user that wants to mount the folder (with your details where appropriate).
<blockquote>Example fstab entry:
{{Text|Text=<pre>owncloud.server_name/files/webdav.php /home/test/owncloud davfs user,rw,noauto 0 0}}</pre>
</blockquote>
*Close the terminal window.
<blockquote>Example "secrets" file:
{{Text|Text=<pre>owncloud.server_name/files/webdav.php test testy001}}</pre>
</blockquote>
*Setup permissions on the "secrets" file so that a owner user ID can write to their file.
<blockquote>{{Code|<pre>chmod 600 ~/.davfs2/secrets}}</pre>
</blockquote>
*Now test the setup for a user ID.
<blockquote>{{Code|<pre>mount /home/<user ID>/owncloud}}</pre>
</blockquote>
*Enter the following text in to each user's "/home/<user ID>/home/.bashrc" file:
<blockquote>
{{Text|Text=<pre>mount /home/<user ID>/owncloud}}</pre>
</blockquote>
*There should be an "owncloud" folder now on the workstation desktop after each successful logon.
12,424

edits