You are not logged in.

#1 2019-09-05 18:34:59

peewster
Member
From: Netherlands
Registered: 2011-07-18
Posts: 47

sudo prompt

Hello,

I was trying to figure out which or even if there is a default "shell greeter" for outputs like the ones from sudo.
It would be nice if there was an option to change the terminal color  when prompted for: <b>[sudo] password for <user>: </b>

I'm just using a simple openbox setup without any display-mangers.

Ideas would be much appreciated.


PoC || GTFO

Offline

#2 2019-09-05 19:15:33

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: sudo prompt

See

man sudoers | less -p "  passprompt "

For setting the sudo prompt. Not sure if it can support colours, but you can experiment with it to see what works.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2019-09-05 20:26:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: sudo prompt

Colors work fine in the SUDO_PROMPT environment variable.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2019-09-06 17:08:01

peewster
Member
From: Netherlands
Registered: 2011-07-18
Posts: 47

Re: sudo prompt

Thanks!


PoC || GTFO

Offline

Board footer

Powered by FluxBB