i am trying to get a login classes for my users, so i decided to edit
/etc/login.conf.
Among other, i have yma classes this way:
shell:\
:maxproc=5:\
:tc=auth-default:
Looking for auth-default, i saw the following:
## Authentication methods
## Note that these are disabled by default, and libutil must
## be rebuilt with LOGIN_CAP_AUTH defined to use them.
#
#auth-defaults:\
# :auth=krb_skey_or_passwd,passwd,kerberos,skey:
#
#auth-root-defaults:\
# :auth-login=krb_skey_or_passwd,passwd,kerberos,skey:\
# :auth-rlogin=krb_or_skey,kerberos,skey:
#
#auth-ftp-defaults:\
# :auth=skey_or_pwd,passwd,skey:
#
#
Ok, so i need LOGIN_CAP_AUTH in libutil, i went to /usr/src/lib/libutil
and changed, Makefile:
From:
# @(#)Makefile 8.1 (Berkeley) 6/4/93
LIB= util
SHLIB_MAJOR= 2
SHLIB_MINOR= 2
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../../sys
#CFLAGS+=LOGIN_CAP_AUTH
To:
# @(#)Makefile 8.1 (Berkeley) 6/4/93
LIB= util
SHLIB_MAJOR= 2
SHLIB_MINOR= 2
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../../sys
CFLAGS+=LOGIN_CAP_AUTH
Here came the problem:
myname# make
cc -O -pipe -Wall -DLIBC_SCCS -I/usr/src/lib/libutil
-I/usr/src/lib/libutil/../../sys LOGIN_CAP_AUTH -c
/usr/src/lib/libutil/login.c -o login.o
cc: LOGIN_CAP_AUTH: No such file or directory
*** Error code 1
Stop.
That's happened cause i turn on LOGIN_CAP_AUTH!
My doubt is: Shouldn't it be -DLOGIN_CAP_AUTH?
Is it right ? Can i use:
# @(#)Makefile 8.1 (Berkeley) 6/4/93
LIB= util
SHLIB_MAJOR= 2
SHLIB_MINOR= 2
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../../sys
CFLAGS+=-DLOGIN_CAP_AUTH
Is that a FreeBSD error or my one?
--
What about something different this year:
Crash your FreeBSD box!
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message