Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Nov 2017 12:10:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223431] "pw useradd -D -e" writes bogus expire_days value into pw.conf
Message-ID:  <bug-223431-8-QcbT8rXWQW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223431-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223431-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223431

--- Comment #2 from vas@mpeks.tomsk.su ---

Hmm, even with a numeric argument it sets the expiry date incorrectly in
newly created accounts, see the "Expire" line below:

root@gw:~ # pw useradd -D -e 365
root@gw:~ # grep expire_days /etc/pw.conf
expire_days =3D 365
root@gw:~ #
root@gw:~ # pw useradd sobaka
Password for 'sobaka' is: rcv8n2PJVP9dt
root@gw:~ #
root@gw:~ # chsh sobaka
Changing user information for sobaka.
Login: sobaka
Password:
$6$KwbJbuUKt03pocQG$nC5mirikOyzF1oFbZacRpn2GXBT1scOBvvtJ8Jfsyw7YPpsR0hW8wDS=
wLK9uuzAXFNt7aTcFgylweMTXtx1Np.
Uid [#]: 1873
Gid [# or name]: 1000
Change [month day year]:
Expire [month day year]: January 1, 1970
Class: russian
Home directory: /home/sobaka
Shell: /bin/tcsh
Full Name: User &
Office Location:
Office Phone:
Home Phone:
Other information:

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223431-8-QcbT8rXWQW>