User Tools

Site Tools


linux:sharepoint

This is an old revision of the document!


Mount Sharepoint

Set up an MS App password for rclone on https://mysignins.microsoft.com/security-info

sudo apt-get install rclone

mkdir -p ~/.config/rclone/
vi ~/.config/rclone/rclone.conf
~/.config/rclone/rclone.conf
[whatevername]
type = webdav
url = https://domainname.sharepoint.com/sites/sitename
vendor = sharepoint
user = firstname.lastname@example.com
pass = xxxx
rclone config
#edit existing site and add the app password

Mount using the following, where “whatevername” is the name of the sharepoint site and “~/sharepoint/whatevername” is the desired mount point:

rclone --vfs-cache-mode writes mount whatevername: ~/sharepoint/whatevername

If this works, run it in daemon mode:

rclone --vfs-cache-mode writes mount whatevername: ~/sharepoint/whatevername --daemon

To stop the mount, use:

fusermount -u /path/to/local/mount
#or
fusermount -uz /path/to/local/mount

#to use in fstab, create wrapper using:

sudo ln -s /usr/bin/rclone /sbin/mount.rclone

then it can be used in fstab like:

whatevername: /path/to/mount/point rclone rw,noauto,nofail,_netdev,x-systemd.automount,args2env,vfs_cache_mode=writes,config=/etc/rclone.conf,cache_dir=/var/cache/rclone 0 0
linux/sharepoint.1637548134.txt.gz · Last modified: (external edit)