Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2002 17:58:32 -0500 (EST)
From:      Simon1 <simon1@server.simon1.net>
To:        <FreeBSD-Questions@freebsd.org>
Subject:   Acroread5
Message-ID:  <20021120174238.H46219-100000@server.simon1.net>

next in thread | raw e-mail | index | archive | help
I'm having troubles opening PDF files with Acroread5 (acroread-5.06_1,
installed from ports).


As root, I can open any file and I'll never get an error.

As a user, I can't open ANY files with the default settings. I always get
an error:


Title of the error window: Acrobat Reader <2> (I should note: The <2> ONLY
was displayed when I loaded Acrobat Reader, THEN went to file->open, if I
just acroread5 test.pdf from the command line, the error was the same, but
the "<2>" was NOT in the error windows title bar.)


"There was an error opening this document. A temporary file could not be
opened."

So, I checked permissions on /tmp

drwxrwxrwt  13 root    wheel      512 Nov 20 17:22 tmp

I am able to create and delete files in /tmp as this user.

$ touch /tmp/test
$ ls -al /tmp/test
-rw-r--r--   1 simon1  wheel        0 Nov 20 17:46 test
$ rm /tmp/test
$ ls -al /tmp/test
ls: /tmp/test: No such file or directory

Our of curiosity,
$ mkdir /home/simon1/tmp
$ chmod 600 /home/simon1/tmp
$ TEMP=/home/simon1/tmp ; export TEMP
$ acroread5 test.pdf

I get the same error as with /tmp.

Next I tried:
$ chmod 700 /home/simon1/tmp
$ acroread5 test.pdf

Which worked beautifully.

I've done searches on the net (Google, FreeBSD, and I read the man page &
ports information) and I haven't seen anyone mention what's going on. I
see where a "insecure /tmp" file vulnerability has been fixed. On my past
install of FreeBSD + Acroread5 from ports about 3 months ago I didn't have
this problem. So I'm wondering if the fix isn't what's causing this.

I'm running 4.7-RELEASE.

Could anyone tell me what I'm doing wrong or what I need to set to use
acroread normally? Also, if the default behavior of acroread has been
changed to require people to use their own personal temporary directories
could this please be added to the documentation and information displayed
when the port is installed?

-Wolfe


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021120174238.H46219-100000>