NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/56138: Changing Login field with chsh requires manual effort



The following reply was made to PR bin/56138; it has been noted by GNATS.

From: "Jeremy C. Reed" <reed%reedmedia.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/56138: Changing Login field with chsh requires manual
 effort
Date: Sat, 1 May 2021 09:57:32 -0500 (CDT)

 It uses pw_copy(3) and its behavior is documented: "... updating the 
 entry corresponding to pw->pw_name with the information ... If an entry 
 is not found to match pw, a new entry is appended to the passwd file 
 ..."
 
 From looking at the 1991 CSRG pw_cop.c code I see it does the same 
 thing.
 
 We can add a reference to pw_copy(3) and maybe a summary of statement 
 above it the chpass.1 manual.
 
 By the way, another way is to do:
 
 usermod -l newloginid oldloginid
 


Home | Main Index | Thread Index | Old Index