You are not logged in.
Whenever I boot my system I get a message wich goes something like "couldn't verify the status of passwords and groups, run systemctl status shadow.service for details.
I did run this command and this is the output I get:
systemctl status shadow.service
● shadow.service - Verify integrity of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Seg 2015-01-19 07:50:47 BRST; 1min 20s ago
Process: 345 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
Main PID: 345 (code=exited, status=2)What does it mean?
Last edited by macaco (2015-05-06 08:08:07)
Offline
If you just updated that package, you may need to systemctl daemon-reload.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
Did the command, did the reboot, no more error message, so I guess it's solved now.
If you have time for it: Why did I have to run the command and what happened in the first place? Or where can I find more information on this topic?
Thanks
Macaco
Offline
You don't necessarily have to reboot, but the daemon-reload causes it to load the new version of the daemon from disk after it has been updated as it is the "reboot" for the process.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
Thanks. I would put this solved then.
Offline
Ooops... the message at boot appeared again. It goes something like this:
[FAILED] Failed to start Verify of Passwords and Groups
Where can I find those boot messages stored anyway?
And what does this mean? Is this something to worry about? (I use an dm-crypt encrypted /home partition with PAM autologin).
Offline
One possible cause is perhaps the "filesystem" package was updated and you did not properly merge the new or altered users and groups.
See this thread:
https://bbs.archlinux.org/viewtopic.php?id=182428
"Failing" in this case can be caused by having more than one of the same group name or user.
Be especially careful when modifying the group and password files. The "grpck" and "pwck" commands will parse the files and let you know of any obvious errors.
Offline
The problem is persisting. What I find to be quite strange is, that it happens every say 4th or 5th boot but NOT always.
My / resides unencrypted on a LVM partition.
Furthermore when searching I found
/etc/group.pacnew
/etc/gshadow.pacnewNeither grpck nor pwck returned any output.
As I don't want to touch those sensible files without deeper knowledge I would be happy to receive some hints from you.
Offline
[Unit]
Description=Verify integrity of password and group files
[Service]
Type=oneshot
ExecStart=/usr/bin/pwck -r
ExecStart=/usr/bin/grpck -rIf you don't get output from group or gshadow, then the systemd service *should* be successful, too. This is just for clarification, i can't explain why the service doesn't work.
Maybe it is related to your encrypted home partition, might be possible that pwck wants to read your user id from your home directory, which isn't possible as long as it is encrypted. This is a vague idea though.
Offline
I too have been getting this just like you but with every boot under certain conditions and only when I would first boot the system.
When I would reboot again immediately everything would be fine until I shut down for a while. I went through all the above steps and my /etc/passwrd is fine and there were no conficts with updating.
What I found out was the culprit on my box was that when certain programs install they add users to /etc/passwd that are supposed to be optional dependancies. Therefore they don't exist in the system.
These entries would seem harmless when I ran the output of pwck. It would just say "does not exist" and not offer to fix anything but there seems to be a race condition or something at work here.
If I get rid of those entries then my problem mysteriously goes away. It has me baffled!
I know this does not help you as you said you did not have any output with pwck but something hinkey is defiantly going on concerning this.
I thought it had something to do with my setup specifically but it seem I'm not alone. I have been pouring over the forums to see if anybody else was having sort of the same issue.
Last edited by hNID (2015-04-12 12:22:31)
Offline
Maybe this helps:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 411647 409600 200M 83 Linux
/dev/sda2 411648 620914687 620503040 295,9G 8e Linux LVM
/dev/sda3 620914688 625142447 4227760 2G 83 Linuxsda1 for /boot
sda2 contains the LVM which in turn contains the unencrypted / and via LUKS on LVM the /home
sda3 is the encrypted SWAP
/etc/fstab reads like this
/dev/sda1 /boot ext2 rw,relatime 0 2
/dev/mapper/VolGroup00-lvolroot / ext4 rw,relatime,data=ordered 0 1
#/dev/mapper/home /home ext4 rw,relatime,data=ordered0 2
#/dev/sda3 none swap defaults 0 0
/dev/mapper/swap none swap defaults 0 0Last edited by macaco (2015-04-12 22:02:16)
Offline
The intermittent nature of the problem may be related to shadow.service being triggered by a timer (which I believe is how the package sets it up). Run:
#systemctl list-timersand see if shadow.timer is listed.
Error code 2 indicates a password problem (see man pwck under the heading "EXIT VALUES").
Perhaps more information may be found by running:
journalctl -b -xe -u shadow.serviceOffline
Okay, the output I got showed a shadow.service timer as follows (read Seg as MON and Ter as TUE):
$ systemctl list-timers
NEXT LEFT LAST PASSED U
Ter 2015-04-14 00:00:00 CEST 13h left Seg 2015-04-13 00:00:00 CEST 10h ago l
Ter 2015-04-14 00:00:00 CEST 13h left Seg 2015-04-13 00:00:00 CEST 10h ago m
Ter 2015-04-14 00:00:00 CEST 13h left Seg 2015-04-13 00:00:00 CEST 10h ago s
Ter 2015-04-14 09:35:40 CEST 23h left Seg 2015-04-13 09:35:40 CEST 55min ago s
4 timers listed.
Pass --all to see loaded but inactive timers, too.
lines 1-8/8 (END)...skipping...
NEXT LEFT LAST PASSED UNIT ACTIVATES
Ter 2015-04-14 00:00:00 CEST 13h left Seg 2015-04-13 00:00:00 CEST 10h ago logrotate.timer logrotate.service
Ter 2015-04-14 00:00:00 CEST 13h left Seg 2015-04-13 00:00:00 CEST 10h ago man-db.timer man-db.service
Ter 2015-04-14 00:00:00 CEST 13h left Seg 2015-04-13 00:00:00 CEST 10h ago shadow.timer shadow.service
Ter 2015-04-14 09:35:40 CEST 23h left Seg 2015-04-13 09:35:40 CEST 55min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
4 timers listed.
Pass --all to see loaded but inactive timers, too.The journalctl returned nothing whatsoever
journalctl -b -xe -u shadow.serice
~
~
~
~
~
~
-- Logs begin at Sáb 2014-12-13 15:02:30 CET, end at Seg 2015-04-13 10:36:06 CES
~
lines 1-1/1 (END)Are we any wiser now?
Offline
It is clear that shadow.service is on a timer, so that the intermittent nature of the failure is more explicable.
As for the rest, did you type "journalctl -b -xe -u shadow.service" or "journalctl -b -xe -u shadow.serice" (the latter being what your last post shows)?
Also, just to be clear, this will only work if shadow.service has been run during the current boot (-b). Perhaps run the service manually in order to make sure?
Regards,
Offline
Ooops, I repeated the command with shadow.service but the result remains the same.
I started the shadow.service manually before running the command. Still no output.
Offline
Not sure if it helps, but I had the exact same issue when I switched from lightdm to sddm. Namely, user lightdm was still in /etc/shadow and /etc/gsahdow. So, I fixed it by removing nonexistent user. I'd check if something similar happened to you, i.e. user or group that should no longer exist.
Last edited by Xabre (2015-04-14 16:57:34)
Offline
Is it wise to post my /etc/shadow in this forum? Scrolled through it and could not find anything which shouldn't be shared besides the username. The hash of my PW should be safe...
Offline
By posting the shadow file, you expose the hashes of your user's passwords. A determined attacker could download that file and try brute force attacks looking for passwords that generate those hashes. There would be no mechanisms in place to throttle attempts or to limit the number of tries. Once they have your password, they could use it to log into your machine. Of course, they would need physical access or you would have to have open ports facing the public Internet.
On the other hand, if you have the habit of reusing passwords on multiple machines, maybe the hacked password would also work on your social media or web mail accounts.
Edit: This is why the contents of shadow were split from passwd in the first place.
Last edited by ewaller (2015-04-16 15:11:50)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
So something like
sudo sed -r -e '/^[^:]*:[x]?[!]{,2}:/!s%(^[^:]*:)([^:]*)(:.*)%\1"WYB"\3%' /etc/shadowmight be useful?
Offline
systemctl start shadow.service, followed immediately by journalctl -b -xe shoud be able to pinpoint the real error in most cases.
Offline
Hahhhh! I finally found the cause!!!!
[user@user-laptop ~]$ systemctl -l status shadow.service
● shadow.service - Verify integrity of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Seg 2015-04-27 14:49:44 CEST; 4min 40s ago
Process: 371 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
Main PID: 371 (code=exited, status=2)
Abr 27 14:49:43 user-laptop systemd[1]: Starting Verify integrity of password and group files...
Abr 27 14:49:43 user-laptop pwck[371]: usuário 'user': diretório '/home/user' não existe
Abr 27 14:49:44 user-laptop pwck[371]: pwck : nenhuma mudança
Abr 27 14:49:44 user-laptop systemd[1]: shadow.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Abr 27 14:49:44 user-laptop systemd[1]: Failed to start Verify integrity of password and group files.
Abr 27 14:49:44 user-laptop systemd[1]: Unit shadow.service entered failed state.
Abr 27 14:49:44 user-laptop systemd[1]: shadow.service failed.I would conclude this happens because my /home partition is LUKS encrypted the shadow.service simply can't access it during the boot. I use pamd for decryption at login.
Sooooooo: Is there any workaround you know of?
PS: Thanks to EWALLER for the clear description!
Last edited by macaco (2015-04-27 13:02:59)
Offline
Still nobody to come with an idea? Problem identified - solution needed ![]()
Offline
Why not create the directory on the unencrypted rootfs as well?
Offline
Wouldn't this cause some trouble when mounting on the same place? I always thought that in order to mount the directory should be empty?
Offline
Nope, that is not true and it won't be an issue. It's obviously a bit confusing as the original contents will seem to have disappeared, but in this case I'd say that isn't an issue
Last edited by Spider.007 (2015-05-02 10:16:34)
Offline