问题
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??
回答1:
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
.
来源:https://stackoverflow.com/questions/18428316/permission-of-using-curlftpfs-on-ubuntu