Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 4183
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: schwern [...] pobox.com
stas [...] stason.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: More portable sudo?
Michael G Schwern wrote: Show quoted text
>On Tue, Oct 21, 2003 at 10:09:52AM -0700, Stas Bekman wrote: >
>>>CPANPLUS likes to know how to run a single command as superuser. On Unix >>>the simplest way to do this is to use a command called "sudo". >>> >>> sudo some_command_i_want_to_run_as_root
>> >>This is not portable (even for unix). I have first used this approach in >>Apache::Test, but Vivek Khera told me that sudo is not installed on all >>Unices. It seems that you want to do 'su -c' instead.
"su -c" is more portable but sudo is safer. I'd have CPANPLUS look for sudo first, then if not ask the user if they want to use su -c instead.
We've decided not to implement 'su -c' in 0.050, but stick with sudo for simple implementation reasons. If this is still a concern after 0.050 is released, patches are welcome and will be seriously considered.