Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pwck warnings: {adm,lp,news,uucp} home dirs missing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Philippe23
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2006
Posts: 130
Location: Central NY

PostPosted: Fri Jan 28, 2022 12:31 pm    Post subject: pwck warnings: {adm,lp,news,uucp} home dirs missing Reply with quote

I just ran pwck for the first time and it returned some warnings.

Not sure if this is just because I have an ancient install [I wouldn't be surprised if originates from when we still had double-zeroes in the year], but it's complaining about some original default user home directories not existing.

Code:
$ sudo 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


I have no printer (lp), I've never used "adm" (not even sure what that's for), and I've never messed with newsgroups (news, uucp).

What's the suggested action here? (Which may be different for each one.)

A. Remove these users (Or are they really expected to exist?)
B. Set the home folders of each of these to /dev/null
C. Create the home folders manually
D. Don't worry about it, it's just a harmless warning

Thanks in advance.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Jan 28, 2022 4:28 pm    Post subject: Reply with quote

I'd say D. I believe they are "default" user IDs installed on almost every system (not only Gentoo). Their shell on my systems is /bin/false.

I can't recall having ever read about them being removed, so no idea if it could cause a problem. I wouldn't think so, and except for adm, their functionality is minor.

According to LSB 5 they are all optional.

If you do remove them, keep in mind that you'll need to manually reconfigure them. I don't see any packages for them in acct-user.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Philippe23
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2006
Posts: 130
Location: Central NY

PostPosted: Sat Jan 29, 2022 10:09 am    Post subject: Reply with quote

Thanks, PJP!
Back to top
View user's profile Send private message
Duncan Mac Leod
Guru
Guru


Joined: 02 May 2004
Posts: 312
Location: Germany

PostPosted: Fri Feb 11, 2022 5:23 pm    Post subject: Reply with quote

Strange, after today's updates I had the same output...

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

BUT in addition...

pwck warns me about user portage not having a password entry in /etc/shadow and if it should add user portage to /etc/shadow

What should I do? ...is there anything broken? Please help!
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sat Feb 12, 2022 5:39 am    Post subject: Reply with quote

Yes. Here is mine.
Code:
$ grep portage /etc/passwd
portage:x:250:250:System user; portage:/var/lib/portage/home:/sbin/nologin

$ grep portage /etc/group
portage:x:250:portage,USERNAME

$ sudo grep portage /etc/shadow
portage:*:9797:0:::::

_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum