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: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/56138: Changing Login field with chsh requires manual effort
Date: Fri, 4 Jun 2021 18:47:32 +0000

 On Sat, May 01, 2021 at 06:45:00AM +0000, parrottjustin16%gmail.com@localhost wrote:
  > Changing the Login name with chsh creates a new entry in the
  > password database but doesn't delete the old one.  I went ahead and
  > deleted the record from master.passwd and remade the password
  > database.
 
 I would not have expected it to allow you to try to do that; it's for
 editing one user's info and mucking with the login name (or uid)
 potentially changes which user it's describing.
 
 Use vipw(8) (or usermod etc.) for such changes.
 
 Probably chsh/chfn/chpass (it's all one thing) should not allow trying
 to change the username or uid.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index