在Ubuntu下如何给文件设置读写权限?
我在Ubuntu14.04下安装了unoconv,但是使用时我打开文件夹终端输入命令:unoconv-fpdfxls.xls终端显示如下信息:unoconv:UnoExc...
我在Ubuntu14.04下安装了unoconv,但是使用时我打开文件夹终端输入命令:
unoconv -f pdf xls.xls
终端显示如下信息:
unoconv: UnoException during export phase:
Unable to store document to file:///var/data/xls.pdf (ErrCode 283)
Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0xa7fc8e4{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"calc_pdf_Export" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE })
这是为什么?是因为unoconv没有该文件夹的写权限吗?我该如何解决这个问题? 展开
unoconv -f pdf xls.xls
终端显示如下信息:
unoconv: UnoException during export phase:
Unable to store document to file:///var/data/xls.pdf (ErrCode 283)
Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0xa7fc8e4{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"calc_pdf_Export" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE })
这是为什么?是因为unoconv没有该文件夹的写权限吗?我该如何解决这个问题? 展开
1个回答
2014-07-05
展开全部
chmod 777 文件名
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询