Hi again all,

OK now Ive learned of the joys of "find" and "xargs", Ive also learned
about the pains of Perl and cpan!

$ perl -MCPAN -e shell
cpan> install LWP::Simple

...seems to be installed now although i got a lot of permission denied
errors and its all a bit ugly...

/bin/sh: /usr/lib/perl5/5.00503/i386-linux/perllocal.pod: Permission
denied

I think its cos Perl is trying to update its database of which modules
are installed but failing cos its "root" and not "admin" owned.

Seems like the REAL solution to this is for the skel to have Perl setup
by default so that...

a) All the "core" Perl modules are in /usr/lib/perl5, are hard linked to
skel and root-owned
b) Any modules that 'admin' decides to install, go under
/usr/local/lib/perl5
NB: I assume Perl can be setup so that cpan will install into a certain
dir
c) When looking for modules, Perl looks in the /usr/local/lib/perl5
directories for modules first
d) then it tries the /usr/lib/perl5 directories if not found.

Is this possible as it seems like the obvious solution for VSs if it is?
Do ppl agree with me here?
If this is possible with Perl, is there a reason why it isnt implemented
like this in the skel?

Cheers all,

Ben K

----- Original Message -----
From: "Ben Kennish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 4:57 PM
Subject: Re: 'admin' write permission to /usr/local/perl5/...


Thanks Pablo!

Not only have you given me the answer but you have given me a link to a
fascinating site.

You have really made my day :)

Ben

----- Original Message -----
From: "Soporte T�cnico" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 2:33 PM
Subject: Re: 'admin' write permission to /usr/local/perl5/...


Hi...

you can try

find  . -type d -print | xargs  chmod  xxx

where xxx is your permissions

Also, check...http://nl.ijs.si/GNUsl/tex/tunix/tips/tips.html

I have learned a lot checking this page

Regards
Pablo



18/12/2001 10:13:59 a.m., "Ben Kennish" <[EMAIL PROTECTED]> wrote:

>Hi all,
>
>We are having problems installing a Perl module in a VS using the Idaya
>CD (freeVSD v1.4.10) and the default skel (freevsd-skel-1_4_10-1rh6).
>
>It seems a bit strange to me...
>By default the admin user has no write permissions to files in
>/usr/lib/perl5/... - fair enough as the files in here seem to be ones
>hard linked to the skel.
>
>But why isnt the skel setup so that by default, new/updated Perl
modules
>are installed
>to /usr/local/lib/perl5/... (although /usr/lib/perl5/.. will be used to
>find a module if it doesnt exist in /usr/local/lib/perl5 )?  It seems
to
>be this way on the DSVR VSs that we own and I cant think of a good
>reason for not doing this?
>
>In the meantime though, as a temporary measure, we are going to give
the
>"admin" user rwx permission to all the directories under /usr/lib/perl5
>(will this solve the problem?) but not to any of the files within them.
>Anyone know a groovy Linux command to do this (perhaps a "chgrp -R
>admin" and "chmod -R 770" under "/usr/lib/perl5" but only for
>directories?)
>
>Thanks in advance,
>
>Ben Kennish
>[EMAIL PROTECTED]
>www.fubra.com
>
>
>------------------------- The freeVSD Support
List --------------------------
>Subscribe:
mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
>Unsubscribe:
mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
>Archives:    http://freevsd.org/support/mail-archives/freevsd-support
>-----------------------------------------------------------------------
------
>
>
Estimado Cliente
Gracias por comunicarse con Soporte T�cnico



Quedamos a su disposici�n por cualquier consulta adicional

Atentamente
Pablo E. Medina
[EMAIL PROTECTED]



------------------------- The freeVSD Support
List --------------------------
Subscribe:
mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe:
mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
------------------------------------------------------------------------
-----

------------------------- The freeVSD Support
List --------------------------
Subscribe:
mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe:
mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
------------------------------------------------------------------------
-----

------------------------- The freeVSD Support List --------------------------
Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
-----------------------------------------------------------------------------

Reply via email to