LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Warning Message for SDDM After Applying New /etc/passwd in Current with Plasma5 (https://www.linuxquestions.org/questions/slackware-14/warning-message-for-sddm-after-applying-new-etc-passwd-in-current-with-plasma5-4175626438/)

regis_n_bits 03-27-2018 08:58 AM

Warning Message for SDDM After Applying New /etc/passwd in Current with Plasma5
 
New laptop with Slackware64-current (March 26 2018) plus the latest Plasma5 packages from AlienBob. The inittab runlevel set to "4".

After updating current's packages from the March 26th updates I noticed that there were new files from the "etc" package:
passwd.new
shadow.new
group.new
gshadow.new

The differences I see are regarding sddm. The changes are:
passwd - sddm user directory is changed from "var/lib/sddm" to "/var/empty"
group - sddm removed from video group

I manually applied these changes to the "passwd" and "group" files (using vipw and vigr).

However, I notice that I get a warning pop-up message from Plasma whenever I login, or log out of a session as a regular user. The message indicates from SDDM indicates that the directory,or file, "/var/empty/.config/sddm-greetrc" is not writeable. I have to then press Enter to acknowledge the message to proceed. After that everything else appears normal.

I don't know if this is due to the Plasma5 packages from AlienBob that I have installed. I don't have KDE4 installed anymore to see if the problem also appears there.

For now I have reverted my manual changes to "passwd" and "group" to go back to the pre- March 26th values. No more sign of the warning message when logging in and out of Plasma5.

Petri Kaukasoina 03-27-2018 09:22 AM

Quote:

Originally Posted by regis_n_bits (Post 5836004)
The differences I see are regarding sddm. The changes are:
passwd - sddm user directory is changed from "var/lib/sddm" to "/var/empty"
group - sddm removed from video group

Code:

Fri Nov 20 05:25:18 UTC 2015:
a/etc-14.2-x86_64-4.txz:  Rebuilt.
  Added SDDM user/group, UID 64, GID 64.

sddm home directory was already then /var/empty and it never was in group video.

There were no new or changed files in March 26th etc-15.0-x86_64-2.txz package: even the passwd.new and group.new files were the same as before.

No idea about Plasma5.

Alien Bob 03-27-2018 12:34 PM

Yeah, Pat added a sddm user on my request but then unfortunately did not use the correct homedirectory (which is /var/lib/sddm) and also did not add the sddm user to the video group. The latter may be a requirement that got added after sddm user was added to the passwd file in -current... membership of the 'video' group is a requirement for non-PAM distros.
I remember asking Pat to change the sddm user configuration but obviously that never happened.

regis_n_bits 03-27-2018 07:53 PM

I don't know when the old sddm home directory got set to /var/lib/sddm (I never edited it).

Don't know if Pat will update the sddm home directory in 'etc'. This issue may only be relevant for Plasma5 (which is not part of current).



Now that I think about it, I used AlienBob's liveslak to install Slackware on the laptop back on March 12th or 13th. So maybe the sddm home directory was set to /var/lib/sddm when it was installed? Anyways, the passwd and group values are correct (just have to remember to not apply those *.new files).

Alien Bob 03-28-2018 02:39 AM

Quote:

Originally Posted by regis_n_bits (Post 5836288)
I don't know when the old sddm home directory got set to /var/lib/sddm (I never edited it).

Don't know if Pat will update the sddm home directory in 'etc'. This issue may only be relevant for Plasma5 (which is not part of current).



Now that I think about it, I used AlienBob's liveslak to install Slackware on the laptop back on March 12th or 13th. So maybe the sddm home directory was set to /var/lib/sddm when it was installed? Anyways, the passwd and group values are correct (just have to remember to not apply those *.new files).

When you install my sddm-qt5 package from the 'ktown' repository which contains Plasma5 desktop, its doinst.sh script which runs at the end of the installation reconfigures the sddm account and ensures that the correct homedirectory is being used. So no matter what the sddm user account looked like before, it will be corrected before the first start of the SDDM login manager.

regis_n_bits 03-29-2018 09:20 PM

New etc package in current changelog. Marking this thread as solved.
Code:

Thu Mar 29 01:02:50 UTC 2018
a/etc-15.0-x86_64-3.txz: Rebuilt.
      When adding an sddm user, use $HOME = /var/lib/sddm.
      Make sure the sddm user is a member of the video group.


bamunds 09-13-2018 10:48 AM

Never mind I've removed Plasma 5, opting for Lumina and FVWM

Didier Spaier 09-13-2018 01:58 PM

It took me a few seconds to realize that you resurrected a 5+ months old thread... It's time sip my coffee ;)


All times are GMT -5. The time now is 10:48 AM.