-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output file is owned by root #381
Comments
Using the terminal unoconv -vvvv -f pdf -o test-doc.pdf test.doc ls -l |
Found the problem. I'm missing the --preserve parameter. |
If I try to use the preserve option I get an error message. I still get myself the file, but the owner is still root:root. This is the error message:
All the folders are owned by nginx:nginx and they have 777 permissions so I have no clue why is there no permission denied for unoconv. |
I'm using .net core to call the unoconv through Process.Start. The pdf file is being generated but the owner of the file is "root" even though I run the application as a normal user(current user). I also tried using the "convert" of ImageMagick and the owner of the generated file is the current user.
I'm using Ubuntu 16.10 and I installed unoconv using
sudo apt-get install unoconv
unoconv --version
unoconv 0.7
Written by Dag Wieers dag@wieers.com
Homepage at http://dag.wieers.com/home-made/unoconv/
platform posix/linux
python 3.5.2+ (default, Sep 22 2016, 12:18:14)
[GCC 6.2.0 20160927]
LibreOffice 5.2.2.2
This is the console output:
Using office base path: /usr/lib/libreoffice
Using office binary path: /usr/lib/libreoffice/program
Selected output format: Portable Document Format [.pdf]
Selected office filter: writer_pdf_Export
Used doctype: document
Output file: file:///home/sa/Documents/test-doc.pdf
The text was updated successfully, but these errors were encountered: