globalcitizen / anytopdf

Automatically exported from code.google.com/p/anytopdf
4 stars 1 forks source link

Conversion of non-root user #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello
This program use the root account in RHEL5.4 convert files correctly
But with the root is unsafe, I would like to use to convert ordinary account

I use the general account to run the openoffice, generate the relevant 
configuration files
Even the root of. Openoffice directory to replace the ordinary user directory
Even so, it can not complete the conversion, the program runs without response 
time, only the ctrl + c out

I ask why?

openoffice version 3.2.1 000320m18(build:9502) , chinese 

Original issue reported on code.google.com by wienne...@gmail.com on 22 Sep 2010 at 12:12

GoogleCodeExporter commented 9 years ago
Sorry I am not familiar with RHEL5.4. 

However I agree that running this script as root is a real problem.

The ultimate solution might be LXC.  This is a new part of the Linux kernel 
which is based on 'cgroups' and 'POSIX file capabilities'.  This is a 
container-based virtualisation system that should allow very secure execution 
of code in an 'application container', with highly restricted permissions.

However, the above solution is not portable from Linux to other operating 
systems, and there are known to have OSX users in addition to Linux users.

What would really help is if you could locate the source of the issue on your 
system.  You could try: "pstree" when the script becomes unresponsive, "strace 
<scriptname>" to see (or log) what system calls are made, or "lsof" to see 
which files are open when the script becomes unresponsive.

Original comment by walter.stanish@gmail.com on 12 Oct 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Thank you for such a detailed reply.
Is today the day my luck, I once again try to use ordinary users to convert 
files.
It's actually surprisingly normal conversion.
The two commands you teach and I write down, if the problems I will try again 
to view
Thank you very much.
Use google translation of the Chinese, thanks to google.

Original comment by wienne...@gmail.com on 15 Oct 2010 at 2:38

GoogleCodeExporter commented 9 years ago
Thanks. Actually I can read Chinese, just write Chinese in future :)  I will 
close this bug now.

Original comment by walter.stanish@gmail.com on 28 Jan 2011 at 1:19