I've followed these instructions to use google-drive-ocamlfuse to mount Google Drive folders on a headless server
But I've encountered an issue, unless I run the command to mount my ~/drive folder as root (via sudo) it throws an error.
(precise)lukes@localhost:~$ google-drive-ocamlfuse -label me ~/drive /fuse: failed to exec fusermount: No such file or directory
So I figured I'd require root privileges and ran
sudo google-drive-ocamlfuse -label me /home/lukes/drive
(precise)lukes@localhost:~$ sudo google-drive-ocamlfuse -label me /home/lukes/drive/ [sudo] password for lukes: (precise)lukes@localhost:~$ ls -l ls: cannot access drive: Permission denied total 4 drwx--x--- 3 lukes 1001 4096 May 24 17:00 Downloads d????????? ? ? ? ? ? drive
Huh? thats a wierd looking output from
so I figured because I mounted it as root I need to run
sudo ls -l
(precise)lukes@localhost:~$ sudo ls -l total 8 drwx--x--- 3 lukes 1001 4096 May 24 17:00 Downloads drwxrwxr-x 2 lukes lukes 4096 May 24 18:29 drive
drive folder is owned correctly. Not sure what I can do to fix the fact I can't cd into it.
sudo su and then
cd drive && ls no problems, but I can't edit any of the files that are in my Google Drive folder, which defeats the point of having mounted them in the first place.