You are not logged in.

#1 2021-03-18 07:52:42

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

shadow.service failed to load

Hello,
during the weekend a message saying that the shadow service failed to load appeared for the first time. It was complaining about cups (I don't use cups since octobre 2020, and no complaints happened there), but suddenly, the error message appeared: https://imgur.com/0PlnLxd.png

This is extremely awkward since I do not have any "cups" entries in /etc/passwd, nor in /etc/group - they were removed by me when the error happened for the 1st time. I will attach those files below.



Does anyone know what can be causing this?

/etc/group: https://pastebin.com/tQ5Z27fT
/etc/passwd: https://pastebin.com/imyxEfhh


Thank  you


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#2 2021-03-18 11:16:17

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: shadow.service failed to load

You manually edited /etc/passwd and /etc/group instead of using userdel / groupdel and it appears you left behind the entries in /etc/shadow and /etc/gshadow.

Offline

#3 2021-03-19 14:26:53

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: shadow.service failed to load

loqs wrote:

You manually edited /etc/passwd and /etc/group instead of using userdel / groupdel and it appears you left behind the entries in /etc/shadow and /etc/gshadow.

Right, thanks, that solved my problem.

Would you mind showing me, how to "properly" use userdel/groupdel?

For example, I have a redundant entry in /etc/group:

libvirt:x:970:samo

Mind showing me, how to properly remove it?
Thanks a lot


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#4 2021-03-19 14:46:03

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,336

Re: shadow.service failed to load

groupdel --help

Offline

Board footer

Powered by FluxBB