You are not logged in.

#1 2022-09-23 22:19:07

noob4lnx
Member
From: Gone_Deleted
Registered: 2022-09-23
Posts: 7

[SOLVED] Potential minor bug in /etc/login.defs

I noticed that when adding a # comment after "MAX_DAYS" or "MIN_DAYS" (example in box below) an error occurs at useradd.

MAX_DAYS=4  # this is the max blah blah

The useradd binary reads /etc/login.defs and can't handle comments after a value , it only filters comments at the beginning of the line.


Maybe a coder can pick up on this sometime in the future. My first little noob contribution to your great distro. I thought of feeding you back on here.

Last edited by noob4lnx (2022-09-23 22:29:20)


deleted account

Offline

#2 2022-09-23 22:23:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Potential minor bug in /etc/login.defs

man login.defs wrote:

Comments are introduced with a "#" pound sign and the pound sign must be the first non-white character of the line.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-09-23 22:28:41

noob4lnx
Member
From: Gone_Deleted
Registered: 2022-09-23
Posts: 7

Re: [SOLVED] Potential minor bug in /etc/login.defs

OK In this case I did not RTFM correctly or missed that section. Thank you for pointing this out. I will close this topic

Update: its now marked as solved.


Thanks again

Last edited by noob4lnx (2022-09-23 22:29:40)


deleted account

Offline

Board footer

Powered by FluxBB