Skip Menu |

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 73974
Status: rejected
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: rodrigo.olmos [...] gmail.com
Cc:
AdminCc:

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



Subject: cmd("su ...")
Date: Fri, 13 Jan 2012 11:18:37 +0100
To: bug-Net-SSH-Perl [...] rt.cpan.org
From: Rodrigo Olmos <rodrigo.olmos [...] gmail.com>
I've searched the bug list and I didn't find anything related to this: With this module the following hangs: cmd("su - rodrigo") But this works: cmd("su - rodrigo -c 'commands'") Is it the normal behavior? I only had to run one command with user 'rodrigo', but others may want to start a shell as user 'rodrigo' and perform a lot of commands... Thanks
On Fri Jan 13 05:19:16 2012, rodrigo.olmos@gmail.com wrote: Show quoted text
> I've searched the bug list and I didn't find anything related to this: > With this module the following hangs: > cmd("su - rodrigo") > > But this works: > cmd("su - rodrigo -c 'commands'") > > Is it the normal behavior?
I would say: yes. The hang probably comes from the missing tty/STDIN for su. On my Debian it does not hang but 'su' complains su: must be run from a terminal in both cases. I'm cleaning tickets and close this as normal, it's no offense please simply reopen if you disagree. Thanks for reporting this. Kind regards, Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/>