在Ubuntu上使用curlftpfs的权限 [英] Permission of using curlftpfs on Ubuntu

查看:336
本文介绍了在Ubuntu上使用curlftpfs的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用

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

将ftp文件夹安装为Ubuntu 12.04中的本地文件夹

to mount ftp folder as a local folder in Ubuntu 12.04

然后我可以读取和编辑该文件夹中的文件

and then I can read and edit files in that folder

但是我无法使用Matlab在此文件夹中添加新文件

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

这是情况

我使用Matlab在此文件夹中绘制png文件

I use Matlab to plot a png file in this folder

但是Matlab告诉我,它无权在此文件夹中创建新文件

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

所以我检查了 $ ls -al 并给了我以下信息:

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!

但是当使用Matlab创建新图片时,总是会出现权限问题

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

我尝试过

sudo chomd 777 /home/alpha/share

下面给我错误:

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

即使我使用root帐户尝试

Even I try it with root account

如何修复它?

推荐答案

CurlFtpFs是FUSE挂载.为了允许除安装程序外的其他用户访问FUSE安装程序,有标志 allow_other allow_root .您的 sudo 意味着root是安装程序,因此只有root可以访问它.

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.

您可以使用 allow_other 标志,但是在您的情况下,我会在您的组列表中添加 fuse .然后挂载没有 sudo 的FTP.

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.

这篇关于在Ubuntu上使用curlftpfs的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆