Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

pwck errors

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
jankom
Guru
Guru
Posts: 545
Joined: Mon Aug 30, 2021 4:18 pm
Location: USA
Contact:
Contact jankom
Website

pwck errors

  • Quote

Post by jankom » Tue Dec 02, 2025 7:41 pm

Hello,

After most recent eix-sinc and emerge -avuND @world there was a warning for the package sys-apps/shadow-4.14.8-r1. Ran command from terminal as the message instructed:

Code: Select all

	andraslinux /home/janos # pwck
	user 'adm': directory '/var/adm' does not exist
	user 'lp': directory '/var/spool/lpd' does not exist
	user 'news': directory '/var/spool/news' does not exist
	user 'uucp': directory '/var/spool/uucp' does not exist
	pwck: no changes
	andraslinux /home/janos # 
This was the same situation with my other Gentoo installation (a remote, virtual server from Akamai linode, no gui).
Why are these errors?
How can I fix them?
Why or do I need users 'adm' 'lp' 'news' and 'uucp' together with the missing directories?

Both of my machines work fine, I'm just curious, and would like a clean system. Maybe I was overzealous and deleted their directories?

Regards,

jankom (Janos)
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4710
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Dec 09, 2025 10:00 am

Code: Select all

DESCRIPTION
       The pwck command verifies the integrity of the users and
       authentication information. It checks that all entries in
       /etc/passwd and /etc/shadow have the proper format and contain valid
       data. The user is prompted to delete entries that are improperly
       formatted or which have other uncorrectable errors.

       Checks are made to verify that each entry has:

       •   the correct number of fields

       •   a unique and valid user name

       •   a valid user and group identifier

       •   a valid primary group

       •   a valid home directory

       •   a valid login shell

       Checks for shadowed password information are enabled when the second
       file parameter SHADOWFILE is specified or when /etc/shadow exists on
       the system.

       These checks are the following:

       •   every passwd entry has a matching shadow entry, and every shadow
           entry has a matching passwd entry

       •   passwords are specified in the shadowed file

       •   shadow entries have the correct number of fields

       •   shadow entries are unique in shadow

       •   the last password changes are not in the future

       The checks for correct number of fields and unique user name are
       fatal. If the entry has the wrong number of fields, the user will be
       prompted to delete the entire line. If the user does not answer
       affirmatively, all further checks are bypassed. An entry with a
       duplicated user name is prompted for deletion, but the remaining
       checks will still be made. All other errors are warnings and the
       user is encouraged to run the usermod command to correct the error.

       The commands which operate on the /etc/passwd file are not able to
       alter corrupted or duplicated entries.  pwck should be used in those
       circumstances to remove the offending entry.
Most notably the line

Code: Select all

       •   a valid home directory
... so it just seems to notify you that those users don't have existing home directories.

You should check if those users are there for some reason. Nowdays system users and groups are being created by acct-user and acct-group package categories.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
jankom
Guru
Guru
Posts: 545
Joined: Mon Aug 30, 2021 4:18 pm
Location: USA
Contact:
Contact jankom
Website

  • Quote

Post by jankom » Tue Dec 09, 2025 2:39 pm

Yes. I have recreated those directory, and no more error.

However, do I need those users? What if I just delete them? Are they part of standard Gentoo "Profile 3 default/linux/amd64/23.0/desktop (stable)"?

jankom
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4710
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Dec 09, 2025 7:36 pm

I cannot answer that.
Probably not if you don't have corresponding acct-user/<username> installed.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic