Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920818

Summary: sys-apps/shadow-4.13-r4 Creating mailbox file: No such file or directory
Product: Gentoo Linux Reporter: Esteve Varela Colominas <esteve.varela>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: releng
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Esteve Varela Colominas 2023-12-27 18:20:05 UTC
When running "useradd -m user" in a clean stage3 tarball, you get the following message:

    Creating mailbox file: No such file or directory

This is likely because MAIL_DIR is set to /var/spool/mail in /etc/login.defs, but the directory doesn't exist.
Comment 1 Esteve Varela Colominas 2023-12-27 18:30:27 UTC
I figure the proper solution would be making the directory in sys-apps/baselayout[build] or similar, or having shadow depend on a package that installs that directory, such as acct-user/mail