Enable visible password entry with lightdm (Solved)

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Digital Distraction
Level 1
Level 1
Posts: 5
Joined: Sat Apr 14, 2018 11:45 pm

Enable visible password entry with lightdm (Solved)

Post by Digital Distraction » Mon Nov 19, 2018 2:29 am

I have a neurological disorder, a form of Agnosia, that makes it extremely difficult to type information correctly when I don't have visual feedback. Because of this, I need to be able to see passwords as I type them. I understand this is possible using lightdm. I have searched the internet and studied the various examples and code that is available and not been able to discover all the information I need to successfully enable visible password entry.

All I need is the answers to the following three questions as they pertain to Mint 18.3 Sylvia using Cinnamon 3.6.6 with lightdm/slick-greeter:

1. the proper .config file to use
2. the proper section of that file, ie [greeter], [seat:*], etc. and
3. the proper format of the command, ie set.prompt.visibility=true

Thanks in advance for any suggestions!

~ $ inxi -Fxz
System: Host: Freida Kernel: 4.10.0-38-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.6.6 (Gtk 3.18.9-1ubuntu3.3)
Distro: Linux Mint 18.3 Sylvia
Machine: Mobo: ASRock model: X370 Taichi
Bios: American Megatrends v: P2.40 date: 06/06/2017
CPU: Quad core AMD Ryzen 3 1300X (-MCP-) cache: 2048 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 27999
clock speeds: max: 3500 MHz 1: 1550 MHz 2: 1550 MHz 3: 1550 MHz 4: 1550 MHz
Graphics: Card: NVIDIA Device 1c82 bus-ID: 0e:00.0
Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
Resolution: 1600x900@59.98hz
GLX Renderer: GeForce GTX 1050 Ti/PCIe/SSE2
GLX Version: 4.5.0 NVIDIA 384.130 Direct Rendering: Yes
Audio: Card-1 Advanced Micro Devices [AMD] Device 1457
driver: snd_hda_intel bus-ID: 12:00.3
Card-2 NVIDIA Device 0fb9 driver: snd_hda_intel bus-ID: 0e:00.1
Sound: Advanced Linux Sound Architecture v: k4.10.0-38-generic
Network: Card-1: Intel Device 24fb driver: iwlwifi bus-ID: 09:00.0
IF: wlp9s0 state: down mac: <filter>
Card-2: Intel I211 Gigabit Network Connection driver: igb v: 5.4.0-k port: d000 bus-ID: 0b:00.0
IF: enp11s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 7001.4GB (0.7% used)
ID-1: /dev/sda model: WDC_WD2005FBYZ size: 2000.4GB
ID-2: /dev/sdb model: TOSHIBA_DT01ACA3 size: 3000.6GB
ID-3: /dev/sdc model: ST2000DM001 size: 2000.4GB
Partition: ID-1: / size: 1.8T used: 30G (2%) fs: ext4 dev: /dev/sdc1
ID-2: swap-1 size: 17.13GB used: 0.00GB (0%) fs: swap dev: /dev/sdc5
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: None detected - is lm-sensors installed and configured?
Info: Processes: 233 Uptime: 1 day Memory: 1247.2/16061.8MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35
Last edited by Digital Distraction on Mon Nov 19, 2018 7:27 am, edited 1 time in total.

gm10
Level 13
Level 13
Posts: 4569
Joined: Thu Jun 21, 2018 5:11 pm

Re: Enable visible password entry with lightdm

Post by gm10 » Mon Nov 19, 2018 3:41 am

You are asking how to show password feedback on the login screen (slick-greeter) but that's already enabled by default. Did you modify your login or did you mean to ask about something else instead?

Digital Distraction
Level 1
Level 1
Posts: 5
Joined: Sat Apr 14, 2018 11:45 pm

Re: Enable visible password entry with lightdm

Post by Digital Distraction » Mon Nov 19, 2018 4:19 am

When I enter my password into the entry box, all that shows is asterisks. I need to see the actual characters of the password as I type them. I cannot "see" the characters in my mind, as most people can, and without them to guide me, I can't keep track of which characters I've typed and which I haven't. The only reason I can type at all is the first letters of a word serve as a stub for me to build up the rest of the word by adding characters to the stub. As the stub grows, the word becomes visible in my mind. I need to know how to make the actual characters show as I type them into the password entry box.

gm10
Level 13
Level 13
Posts: 4569
Joined: Thu Jun 21, 2018 5:11 pm

Re: Enable visible password entry with lightdm

Post by gm10 » Mon Nov 19, 2018 5:30 am

Oh, you want cleartext password entry. I'm not aware of any settings to change that, to the best of my knowledge you'd have to change that in slick-greeter's source code and then compile from source yourself.

Here's a walkthrough on how to do that:
  1. Mint menu > Software Sources > Check the box for Enable source code repositories at the bottom and update the cache, if necessary
  2. In a terminal window, run these commands:

    Code: Select all

    apt source slick-greeter
    apt build-dep -y slick-greeter
    
    This will download the source and install a bunch of packages you need to compile it.
  3. Now type

    Code: Select all

    cd slick-greeter
    followed by the Tab key to autocomplete the folder name, then Enter to change to the source code folder.
  4. Run

    Code: Select all

    xed src/greeter-list.vala
  5. Search for

    Code: Select all

            var prompt = selected_entry.add_prompt (text, accessible_text, secret);
    and replace with

    Code: Select all

            var prompt = selected_entry.add_prompt (text, accessible_text, false);
  6. Save and exit.
  7. Run all of these

    Code: Select all

    ./autogen.sh
    make
    sudo make install
  8. Log out and enjoy your cleartext password prompt. :)

Digital Distraction
Level 1
Level 1
Posts: 5
Joined: Sat Apr 14, 2018 11:45 pm

Re: Enable visible password entry with lightdm (Solved)

Post by Digital Distraction » Mon Nov 19, 2018 7:33 am

To gm10,

Thank you so much!! :D Your solution worked perfectly. I have been working on this for so long, and yet I was still headed off in the wrong direction.

gm10
Level 13
Level 13
Posts: 4569
Joined: Thu Jun 21, 2018 5:11 pm

Re: Enable visible password entry with lightdm (Solved)

Post by gm10 » Mon Nov 19, 2018 7:38 am

No worries. The joys of open-source software, where if you don't like how it works you can simply change it. :)

Post Reply

Return to “Software & Applications”