Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission of using curlftpfs on Ubuntu

I use

$sudo curlftpfs –o allow_other alpha:1234  @192.168.1.100 /home/alpha/share

to mount ftp folder as a local folder in Ubuntu 12.04

and then I can read and edit files in that folder

but I can't add a new file in this folder with Matlab

Here's the situation

I use Matlab to plot a png file in this folder

but Matlab told me that it don't have permission to create new file in this folder

so I check with $ls -al amd it give me following info:

drwxr-xr-x  1 root  root    1024  1??  1  1970 share

When I want to modify my code and data it's works!

But when creating a new pic with Matlab it's always give me the permission problem

I have tried

sudo chomd 777 /home/alpha/share

It's give me error below:

chmod: changing permissions of ??/home/alpha/share??: Operation not permitted

Even I try it with root account

how to fix it??

like image 531
blueman010112 Avatar asked Aug 25 '13 11:08

blueman010112


1 Answers

CurlFtpFs is a FUSE mount. To allow a user other than the mounter to access a FUSE mount, there are flags allow_other and allow_root. Your sudo implies that root is the mounter, so only root can access it.

You could use the allow_other flag, but in your case I would add fuse to your list of groups. Then mount the FTP without sudo.

like image 197
popham Avatar answered Sep 19 '22 11:09

popham