Subject: Re: usermod, login class
To: rudolf <netbsd@eq.cz>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-userlevel
Date: 10/21/2005 19:15:43
--WOTjKnJ88wpJKlWH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 21, 2005 at 06:39:52PM +0200, rudolf wrote:
> I tried to change a user's login class with usermod, but the change=20
> didn't show up in the passwd file (manual says that it should be the=20
> fifth colon-delimited field), the field stays empty.

which manual says it?
it's the fifth field in master.passwd, not passwd.
the fifth field in passwd is username.

it works just fine for me:

# grep salo /etc/master.passwd
salo:<removed>:1000:100::0:0:Lubomir Sedlacik,,,:/home/salo:/usr/pkg/bin/zsh
# vi /etc/login.conf
test|Test Entry:\
        :openfiles=3D2048:
# cap_mkdb /etc/login.conf
# usermod -L test salo
salo:<removed>:1000:100:test:0:0:Lubomir Sedlacik,,,:/home/salo:/usr/pkg/bi=
n/zsh


regards,

--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

--WOTjKnJ88wpJKlWH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFDWSI/iwjDDlS8cmMRApALAJ43/g4MW+lt+zTTHnUmsj4JtXVy2ACeLojJ
nfO/ZjW+ysvKOd12Jb56MFo=
=85eG
-----END PGP SIGNATURE-----

--WOTjKnJ88wpJKlWH--