From: | "Brad Elliott" <brad_e [...] hotmail.com> |
To: | bug-par [...] rt.cpan.org |
Subject: | Permissions of par-SYSTEM in temporary directory |
Date: | Sun, 25 Apr 2004 03:17:47 +0000 |
Hello,
My name is Brad Elliott and I am writing to report an issue with the Perl
Archive Tool. The tool has been very useful in creating a perl application
and distributing it as an application. Myself and a colleague recently
stumbled across a rather unusual problem related to the permissions of the
par-SYSTEM directory which seems to be created when running the perl
executable.
Basically there were two linux users trying to run a PAR generated
application on the same machine. Whoever ran their application first had no
problems because when extracting the application the par-SYSTEM directory
was created as writable for this user. However, the permissions for this
directory were read+execute for other all other users. Therefore, when
another user tried to run an executable on the same machine after the
par-SYSTEM directory already exists then they received a very generic error
stating something like:
directory or file does not exist: line 688
I don't remember the error off hand but I can provide more detail if
necessary. We were running on version 0.8 of the PAR package on Redhat Linux
with the TMP environment variable set to /tmp. If the user name was
belliott, after extracting the executable a directory called /tmp/par-SYSTEM
is created as well as /tmp/par-belliott. However, the /tmp/par-SYSTEM has
permissions of 755 for user belliott and therefore no other user can write
to the /tmp/par-SYSTEM. We worked around the issue by simply changing the
permissions on the /tmp/par-SYSTEM directory to writable for the group but
it may be possible to fix it in another manner or at least make other users
aware if they see the same problem.
Brad Elliott
Show quoted text
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN Premium
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines