PDA

View Full Version : How to create a login message or banner



wilsonwx18
August 27th, 2018, 07:13 AM
Hi,

Does anybody know how to create a login message or banner for ubuntu 18.0.4 LTS.

ajgreeny
August 27th, 2018, 10:54 AM
From your description it's impossible to know what you really want so please give us more details.

What do you want it to look like, do you want it to show for a limited time and disappear, etc etc.

wilsonwx18
August 27th, 2018, 06:19 PM
Hi,
I will like to create a warning message "Please login only if you are authorised to do so" at the login page or before the user log into his or her account. How do I go about doing this.

deadflowr
August 27th, 2018, 06:20 PM
See: https://help.gnome.org/admin/system-admin-guide/stable/login-banner.html.en

wilsonwx18
August 28th, 2018, 04:45 AM
Hi,
How do I create a keyfile in /etc/dconf/db/gdm.d

again?
August 29th, 2018, 06:13 AM
You create the gdm keyfile as shown in deadflowr's link.
1. Create the gdm profile

sudo nano /etc/dconf/profile/gdm
Copy and paste...

user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults


In nano to save, press and release ctrl + x, hit y and then Enter.

2. Create a gdm keyfile
Create the /etc/dconf/db/gdm.d directory if it doesn't exist.

sudo mkdir -p /etc/dconf/db/gdm.d

Create keyfile...

sudo nano /etc/dconf/db/gdm.d/01-banner-message
Copy and paste...

[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='Type the banner message here.'
Using your message
Save as before.

3. Update database

sudo dconf update
Reboot.