You are not logged in.

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

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

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: 9,070
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 X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

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

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,150
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: 41

Re: sudo prompt

Thanks!


PoC || GTFO

Offline

Board footer

Powered by FluxBB