LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2015, 08:56 AM   #1
steve francis
LQ Newbie
 
Registered: Apr 2010
Distribution: Linux Mint 17
Posts: 18

Rep: Reputation: 0
Evince Document Viewer - Error setting owner: Operation not permitted


I use Linux Mint 17, which comes with Evince Document Viewer 3.10.3

I store my documents on a NAS drive (mounted as NAShome), which uses the NFS protocol to share files with over the network.

My problem is this: When I view a PDF file in Evince Document Viewer and select File--->Save a copy..., then I get the following message:
The file could not be saved as “file:///home/steve/NAShome/docs/testfile.pdf”.
Error setting owner: Operation not permitted


When I look in the docs folder on the NAS, however, the file has been saved!

OK, so this is not stopping me from working. However, I would like to know what is going on to improve my knowledge of Linux software.

Any ideas?

Note This only happens for PDF files from Evince. (I can use LibreOffice to save ODT file copies to the NAS with no problem. I can also copy/paste PDF files from the Desktop to the NAS no problem.)
 
Old 06-18-2015, 09:03 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
Yes, I get the same thing from Save a Copy when the target is a remote Samba mount, or even a local VFAT filesystem.

Evince is trying to set owner, group, and permissions on the copy it saves, The error message means it is unable to do so, either because the filesystem doesn't support that operation (VFAT has no support for owner/group), or because of a problem with the user or group identifiers (possible over the network).

It could be argued that Evince shouldn't do this, and just let the owner, group, and permissions pick up the defaults. As most programs do. But in this case, I assume the authors want "Save a copy" to mean the copy has the exact same attributes as the original. So it tries to make it that way, and the error message means it could not.

As you said, the file is saved anyway, it just doesn't have the same attributes as the original.
 
1 members found this post helpful.
Old 06-19-2015, 04:02 PM   #3
steve francis
LQ Newbie
 
Registered: Apr 2010
Distribution: Linux Mint 17
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ljb643 View Post
Yes, I get the same thing from Save a Copy when the target is a remote Samba mount, or even a local VFAT filesystem.

Evince is trying to set owner, group, and permissions on the copy it saves, The error message means it is unable to do so, either because the filesystem doesn't support that operation (VFAT has no support for owner/group), or because of a problem with the user or group identifiers (possible over the network).

It could be argued that Evince shouldn't do this, and just let the owner, group, and permissions pick up the defaults. As most programs do. But in this case, I assume the authors want "Save a copy" to mean the copy has the exact same attributes as the original. So it tries to make it that way, and the error message means it could not.

As you said, the file is saved anyway, it just doesn't have the same attributes as the original.
Thanks for taking the time and trouble to post a reply. I'm grateful for your explanation.

Just for completeness, my NAS file system is NTFS, which doesn't support Linux permissions as you say.

I have the following line in /etc/fstab:
Code:
#edited to automatically connect to NAS on start up
192.168.1.99:/volume1/homes /home/steve/NAShome nfs nouser,rsize=8192,wsize=8192,atime,auto,rw,dev,exec,suid 0 0
There might be some way of entering uid, gid and umask values to match the Evince permissions but that's a problem to experiment with on a slow, rainy day. It's a bit beyond my current level of understanding.

Thanks again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error creating directory: Operation not permitted alirezaimi Linux - Newbie 16 04-02-2013 10:51 AM
[SOLVED] Evince document viewer vs. my Brother laser printer taylorkh Linux - Software 4 03-16-2011 11:35 AM
evince document viewer in opensuse sumeet inani Linux - Newbie 2 02-24-2009 10:31 PM
FAT32 error operation not permitted Maverick1182 Mandriva 5 06-23-2006 02:09 AM
mknod gives Operation Not Permitted error choobad Linux - Software 2 07-13-2004 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration