Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: Distro Pkg-Managed, broken Install.pm, sudo clears $PERL5LIB (sudoers)

by martin (Friar)
on Sep 30, 2010 at 23:23 UTC ( #862880=note: print w/replies, xml ) Need Help??


in reply to Re^3: Distro Pkg-Managed, broken Install.pm, sudo clears $PERL5LIB (sudoers)
in thread Distro Pkg-Managed, broken Install.pm, sudo clears $PERL5LIB

martin But please do not make passing on PERL5LIB a default.

shmem Why? The PERL5LIB environment variable is set up after the fact (of changing $< and $>) of getting broader permissions via sudo.

Sudo is not only used to hand out superuser shells. It is designed to give limited access to a variety of actions in a precisely controlled fashion, most notably perhaps running scripts with privileges of a different user.

This can, for instance, enforce the use of a particular interface to some system service. To that end it is mandatory that the sudoer cannot change what code is being run via environment variables such as PERL5LIB. Therefore, caution would dictate not to undermine this safety feature through careless defaults. You can always be more specific where you have to.

I find it reasonable to play safe by default. You may resolve a certain incommodity the way you suggested, but should be aware of the security implications, too.

  • Comment on Re^4: Distro Pkg-Managed, broken Install.pm, sudo clears $PERL5LIB (sudoers)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862880]
help
Chatterbox?
[Corion]: Is anybody aware of what makes Android Oreo better than Android Nougat? I'm not sure if the architectural changes (etc) are there already that make upgrading an Oreo-kernel phone to a newer Android userland (Lineage OS) version feasible
[Corion]: Yeah, CryTek got blindsided (or whatever) by Unity and Unreal Engine being zero cost, and the CryTek documentation being bad/nonexistent I think
[Corion]: "zero monetary cost", because of course, it's gratis only if your time has no value :)
[marto]: I used to keep up to date with my android ROMs, updating to the nightly every other day
[marto]: in my experience the jump in major releases has been painless, and performed better
[marto]: Corion if your device has an official Oreo ROM I'd do a nandroid backup and give it a shot

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-12-14 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (389 votes). Check out past polls.

    Notices?