From owner-freebsd-questions Mon Dec 15 13:42:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA18219 for questions-outgoing; Mon, 15 Dec 1997 13:42:42 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from thecore.com (sfinn@guardian.thecore.com [206.136.149.11]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA18210 for ; Mon, 15 Dec 1997 13:42:39 -0800 (PST) (envelope-from sfinn@thecore.com) Received: from localhost (sfinn@localhost) by thecore.com (8.8.8/8.8.8) with SMTP id QAA17798; Mon, 15 Dec 1997 16:41:49 -0500 (EST) Date: Mon, 15 Dec 1997 16:41:49 -0500 (EST) From: Shaun To: Doug White cc: Victor Sudakov , freebsd questions mailing list Subject: Re: ac does not work in FreeBSD 2.2.2 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 15 Dec 1997, Doug White wrote: > On Mon, 15 Dec 1997, Victor Sudakov wrote: > > Hello. > > > > How can this be that ``ac'' does not show anything while ``last'' works? > > Because you have to turn on accouting. > > man accton Actually I don't believe the 'ac' command has anything to do with the 'accton' command. According to the man pages on 'ac' and 'last', they both depend on being able to read /var/log/wtmp. I am not sure why one would work while the other wouldn't though. Neither are suid and if one can see the file the other should as well. Make sure you don't have 'ac' aliased. I have shot myself in the foot a few times aliasing commands without realizing it right away. +------------------- http://www.download.net ----------------------+ | Shaun M. Finn TechnoCore Communications, Inc. | | sfinn@thecore.com Internet Web Services & Access | | VOICE: (732)928-7400 P.O. Box 106 | | FAX: (732)928-7402 Jackson, NJ 08527-0106 | +------------------- http://www.thecore.com/ ----------------------+