Problem with login.conf classes

Melvyn Sopacua freebsd-questions at webteckies.org
Thu Jan 22 13:22:21 PST 2004


On Thursday 22 January 2004 20:55, Chris Riley wrote:

> I'm trying to create a login class on a 4.9 box that will add additional
> restrictions for some users. I can add the login.class entries to the
> default class and they work, but they apply to everyone. I only want
> them to apply to certain users, but this isn't working.
>
> Here's what I'm doing:
>
> I create a copy of the default entry with the name "mygroup" and add

You don't need to create a copy, just enter the changes and close with:
	:tc=default:


> However, if I add the 2 lines to the "default" entry in login.conf it
> does work, but it works for everyone.
>
> How can I make it so that these entries are only applied to people in
> "mygroup"?

You can't, the following values are fetched from the default class *always*:
login_prompt
passwd_prompt
login-retries
login-backoff

See lines 283 and following of /usr/src/usr.bin/login/login.c

-- 
Melvyn

=======================================================
FreeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue Dec 30 
14:31:47 CET 2003     
root at sarevok.idg.nl:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  i386
=======================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040122/29befb3e/attachment.bin


More information about the freebsd-questions mailing list