[Gambas-user] su on non english computers

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat Jan 16 02:57:36 CET 2021

Are you sure you can get the password that way? Sounds fishy to me.
Anyway, look at sudo arguments  --command-timeout and --validate. I think
they may offer a more standard way to do this.


On Sat, Jan 16, 2021 at 3:37 AM Bruce Steers <bsteers4 at gmail.com> wrote:

> Yes.
> You can enter password when ./reconf-all starts and go for a walk.
> when it gets to 'sudo make unstall' or 'su -c "make install"' the proccess
> does not fail because you are not there to type the password. it sends the
> command then reads the terminal text looking for.
> Line Begins "[sudo]" (for sudo) when the terminal line says that it types
> the previously entered password for you using TerminalView.Input()
> But I need to know if su -c command prompts with "Password:" in all
> languages.
> That's what I am saying.
> BruceS
> On Sat, 16 Jan 2021 at 01:10, Jussi Lahtinen <jussi.lahtinen at gmail.com>
> wrote:
>> I don't quite follow what you are saying... you mean it automatically
>> fills password??
>> Jussi
>> On Sat, Jan 16, 2021 at 2:15 AM Bruce Steers <bsteers4 at gmail.com> wrote:
>>> Hi all.
>>> I've written a function in my gambas installer app than auto types sudo
>>> password when asked for.
>>> This is easy as sudo when requesting password has this message...
>>> [sudo] Password for user
>>> so i can make the app look for the last terminal line beginning with
>>> [sudo]
>>> But if i use su -c "command" the prompt is ...
>>> Password:
>>> My question is if using su -c on a non-english computer does su display
>>> a translated Password word or does it say Password: in all languages?
>>> Thanks in advance :)
>>> BruceS
>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210116/e41a3547/attachment.htm>

More information about the User mailing list