[pca] pca --man
French, David
David_French at intuit.com
Tue Nov 18 21:58:37 CET 2008
I had a similar problem, the fix is everyone needs read access. For security Pod::Usage won't run as root. pca switches to user nobody before calling it. From the pca code:
# Change uid to something secure as pod2usage does not run as root.
# This snippet is taken from perldoc. See the comments there.
my $id= eval { getpwnam("nobody") };
Hope this helps.
--Dave
________________________________
From: pca-bounces at lists.univie.ac.at [mailto:pca-bounces at lists.univie.ac.at] On Behalf Of Bliss, Kevin L
Sent: Tuesday, November 18, 2008 8:36 AM
To: 'PCA (Patch Check Advanced) Discussion'
Subject: Re: [pca] pca --man
What are the overall permissions? The line shown is trying to open a file for read access, do you have read access for pca. I would say you want something between 500 and 555 for pca.
________________________________
From: pca-bounces at lists.univie.ac.at [mailto:pca-bounces at lists.univie.ac.at] On Behalf Of Selk Robert (LOGIC_NET)
Sent: Tuesday, November 18, 2008 8:30 AM
To: pca at lists.univie.ac.at
Subject: [pca] pca --man
Hi everyone,
I have the follwoing problem if I try to open the manual for pca:
pca --man
Can't open /bin/pca: Permission denied at /usr/perl5/5.8.4/lib/Pod/Perldoc.pm line 1371.
I´m logged in as root and /bin/pca has x permissons.
Here is line 1371:
1370 local($_);
1371 open(TEST,"<", $file) or die "Can't open $file: $!"; # XXX 5.6ism
1372 while (<TEST>) {
1373 if (/^=head/) {
1374 close(TEST) or die "Can't close $file: $!";
1375 return 1;
1376 }
1377 }
1378 close(TEST) or die "Can't close $file: $!";
1379 return 0;
Any suggestions ?
Thank you.
Regards
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.univie.ac.at/mailman/private/pca/attachments/20081118/f95c6e2d/attachment-0001.html
More information about the pca
mailing list