Hi Alan,
Totally agree - I think the problem here is something else - we shouldn't be
using "su" at all on
Solaris - but embedded_su - and this is meant to follow the PAM conversation
mechanisms as outlined
in the embedded_su manpage, which means that parsing the string shouldn't be
relevant...
I'll discuss this with Jim.
Thanks,
Darren.
Alan Coopersmith wrote:
> So if su outputs a prompt for "Smartcard PIN" instead of password,
> would it also hang? What if it asks for "Kerberos password" as well
> as normal password?
>
> The point is you can't assume su prompts, no matter what the locale is.
>
> -Alan Coopersmith- alan.coopersmith at sun.com
> Sun Microsystems, Inc. - X Window System Engineering
>
> Takao Fujiwara - Tokyo S/W Center wrote:
>> I mean fget(3C) will never come back because "su" command has no outputs
>> after the localized string "Password:" is just ignored.
>>
>> while ( 1 )
>> {
>> bzero(buffer, 255);
>> r = fgets (buffer, 255, infile);
>> ...
>>
>> parse_embedded_su_output (context, buffer);
>>
>> switch (context->msg_type) {
>>
>> case ES_PASSWORD:
>>
>>
>> Alan Coopersmith wrote:
>>> Takao Fujiwara - Tokyo S/W Center wrote:
>>>
>>>> I'm updating libgksu1.2-04-rbac-support.diff.
>>>> gksu tries to parse the string "Password:" but "Password:" is
>>>> localized on locale then gksu hangs up by itself.
>>>> The patch means "su" command is always run on C locale.
>>>
>>> And what happens when su prompts for something other than "Password:"?
>>>
>>
>