mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
@@ -135,18 +135,23 @@ automatically every time you log in to your Linux computer.
|
||||
|
||||
5. Set yourself as the owner and make the permissions read-write owner only::
|
||||
|
||||
chown <username>:<username> ~/.davfs2/secrets
|
||||
chown <linux_username>:<linux_username> ~/.davfs2/secrets
|
||||
chmod 600 ~/.davfs2/secrets
|
||||
|
||||
6. Add your Nextcloud login credentials to the end of the ``secrets`` file,
|
||||
using your Nextcloud server URL and your Nextcloud username and password::
|
||||
|
||||
example.com/nextcloud/remote.php/dav/files/USERNAME/ <username> <password>
|
||||
https://example.com/nextcloud/remote.php/dav/files/USERNAME/ <username> <password>
|
||||
or
|
||||
$PathToMountPoint $USERNAME $PASSWORD
|
||||
for example
|
||||
/home/user/nextcloud john 1234
|
||||
|
||||
7. Add the mount information to ``/etc/fstab``::
|
||||
|
||||
example.com/nextcloud/remote.php/dav/files/USERNAME/ /home/<username>/nextcloud
|
||||
https://example.com/nextcloud/remote.php/dav/files/USERNAME/ /home/<linux_username>/nextcloud
|
||||
davfs user,rw,auto 0 0
|
||||
|
||||
|
||||
8. Then test that it mounts and authenticates by running the following
|
||||
command. If you set it up correctly you won't need root permissions::
|
||||
|
||||
Reference in New Issue
Block a user