RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1181606 - Setting a banner in the dconf-editor does not work
Summary: Setting a banner in the dconf-editor does not work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gdm
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-13 13:03 UTC by Bill Sanford
Modified: 2015-05-21 08:40 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-21 08:40:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 708258 0 Normal RESOLVED [PATCH] dconf update is not correctly checking the mtime of the keyfiles 2020-05-11 15:38:49 UTC

Description Bill Sanford 2015-01-13 13:03:24 UTC
Description of problem:
When I use the dconf-editor, org -> gnome -> login-screen, and enable "banner-message-enable" and edit the "banner-message-text" to something with characters, this does not save the change to the 00-upstream-settings or any new file it might create.

If I create a file '/etc/dconf/db/gdm.d/99-site-defaults' with the following:

[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='WARNING: Use of this system is restricted and monitored. Only authorized personnel have access to this machine'

Run 'dconf update' as root.

Log out and log back in and select my username, I see the banner.
RHEL-7.1-20150108.0

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. See above.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Marek Kašík 2015-01-14 11:49:43 UTC
(In reply to Bill Sanford from comment #0)
> Description of problem:
> When I use the dconf-editor, org -> gnome -> login-screen, and enable
> "banner-message-enable" and edit the "banner-message-text" to something with
> characters, this does not save the change to the 00-upstream-settings or any
> new file it might create.

I see that you would like to have the setting saved in textual form. Have you configured this as in https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Desktop_Migration_and_Administration_Guide/store-user-settings-over-nfs.html ?
After setting this you'll see the changed settings in ~/.config/dconf/user.txt.


> If I create a file '/etc/dconf/db/gdm.d/99-site-defaults' with the following:
> 
> [org/gnome/login-screen]
> banner-message-enable=true
> banner-message-text='WARNING: Use of this system is restricted and
> monitored. Only authorized personnel have access to this machine'
> 
> Run 'dconf update' as root.
> 
> Log out and log back in and select my username, I see the banner.
> RHEL-7.1-20150108.0

GDM uses profile gdm for its configuration. Looking at /etc/dconf/profile/gdm it tries user database at first but since the dconf-service runs under gdm user and gdm user doesn't has its ~/.config/dconf/ directory, it tries next databases. These are local, site, distro and gdm. Changing the settings for any of these will do what you want.
Have you tried to change the settings using dconf-editor when logged to your personal account?

Comment 3 Bill Sanford 2015-02-16 15:48:10 UTC
I did the steps in the link.

I do see the changed settings in ~/.config/dconf/user.txt.

I still don't see the banner.

Comment 4 Marek Kašík 2015-02-17 09:24:03 UTC
You have to set this manually in gdm database in "/etc/dconf/db/gdm.d/0*-something" because you need to set it for "gdm" profile (or you can set it in local, site or distro databases but the gdm database is more preferred since we have it).

Comment 5 Marek Kašík 2015-03-23 09:38:46 UTC
Have you tried to set the banner-message-* manually in gdm database as written in comment #4?

Comment 6 Matthias Clasen 2015-05-15 00:38:15 UTC
Moving this to gdm

Comment 7 Adi 2015-05-20 09:19:27 UTC
Some more related scenarios:

"dconf update" after the following implementation also does not update gdm DB:

1. Extracting a tar bal which creates: /etc/dconf/db/gdm.d/01-loginscreen
2. # cat some_file > /etc/dconf/db/gdm.d/01-loginscreen
3. # echo "some content" > /etc/dconf/db/gdm.d/01-loginscreen

The following  /etc/dconf/db/gdm.d/01-loginscreen was created in all these scenarios:

[org/gnome/login-screen]
disable-user-list=true
disable-restart-buttons=true
banner-message-enable=true
banner-message-text='Welcome'

and after running 'dconf update' - nothing is updated.\

The only thing which seems to work is editing with vi. so for running updates in script I'm required to simulate vim editing by running:
vim -c ":q" /etc/dconf/db/gdm.d/01-loginscreen

Comment 8 Marek Kašík 2015-05-20 13:32:21 UTC
The answer to my question from comment #5 is still important for this bug.

Comment 9 Marek Kašík 2015-05-20 14:06:52 UTC
(In reply to Adi from comment #7)
> Some more related scenarios:
> 
> "dconf update" after the following implementation also does not update gdm
> DB:
> 
> 1. Extracting a tar bal which creates: /etc/dconf/db/gdm.d/01-loginscreen
> 2. # cat some_file > /etc/dconf/db/gdm.d/01-loginscreen
> 3. # echo "some content" > /etc/dconf/db/gdm.d/01-loginscreen
> 
> The following  /etc/dconf/db/gdm.d/01-loginscreen was created in all these
> scenarios:
> 
> [org/gnome/login-screen]
> disable-user-list=true
> disable-restart-buttons=true
> banner-message-enable=true
> banner-message-text='Welcome'

The scenario #2 works for me here. What permissions and owner does the file have?


> and after running 'dconf update' - nothing is updated.\

How did you verify that the values were not updated?


> The only thing which seems to work is editing with vi. so for running
> updates in script I'm required to simulate vim editing by running:
> vim -c ":q" /etc/dconf/db/gdm.d/01-loginscreen

What does your '/etc/dconf/profile/gdm' file contain?

Comment 10 Adi 2015-05-20 14:20:15 UTC
(In reply to Marek Kašík from comment #9)
> (In reply to Adi from comment #7)
> > Some more related scenarios:
> > 
> > "dconf update" after the following implementation also does not update gdm
> > DB:
> > 
> > 1. Extracting a tar bal which creates: /etc/dconf/db/gdm.d/01-loginscreen
> > 2. # cat some_file > /etc/dconf/db/gdm.d/01-loginscreen
> > 3. # echo "some content" > /etc/dconf/db/gdm.d/01-loginscreen
> > 
> > The following  /etc/dconf/db/gdm.d/01-loginscreen was created in all these
> > scenarios:
> > 
> > [org/gnome/login-screen]
> > disable-user-list=true
> > disable-restart-buttons=true
> > banner-message-enable=true
> > banner-message-text='Welcome'
> 
> The scenario #2 works for me here. What permissions and owner does the file
> have?
> 

-rw-r--r-- 1 root root 105 May 19 16:43 /etc/dconf/db/gdm.d/01-loginscreen

> 
> > and after running 'dconf update' - nothing is updated.\
> 
> How did you verify that the values were not updated?
> 

The login screen remained as is until after I used vi, then the restart button disappeared, banner was displayed, etc..

> 
> > The only thing which seems to work is editing with vi. so for running
> > updates in script I'm required to simulate vim editing by running:
> > vim -c ":q" /etc/dconf/db/gdm.d/01-loginscreen
> 
> What does your '/etc/dconf/profile/gdm' file contain?

/etc/dconf/profile/gdm:
user-db:user
system-db:local
system-db:site
system-db:distro
system-db:gdm

Comment 11 Ray Strode [halfline] 2015-05-20 19:00:01 UTC
almost certainly the below dconf bug.

workaround is to run touch on the directory after you put the config data in place (or copy the files over instead of using the redirection operator)

Comment 12 Ray Strode [halfline] 2015-05-20 19:00:18 UTC
*** Bug 1223301 has been marked as a duplicate of this bug. ***

Comment 13 Marek Kašík 2015-05-21 08:40:56 UTC
Let's clean this a little.

The original description in this report is not a bug because reporter wanted to set a global setting using his local account which he can't (I see now that he already answered my question from the comment #5 in the description).

The problem Adi mentioned here is a different bug but a valid one.

I'm closing this bug as NOTABUG and reopening the #1223301 for dconf.

Thank you all for your help


Note You need to log in before you can comment on or make changes to this bug.