From owner-freebsd-questions Tue Dec 16 12:37:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA27231 for questions-outgoing; Tue, 16 Dec 1997 12:37:59 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from info.tsu.tomsk.su (info.tsu.tomsk.su [194.226.48.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA27016 for ; Tue, 16 Dec 1997 12:33:38 -0800 (PST) (envelope-from vas@vas.tsu.tomsk.su) Received: (from uucp@localhost) by info.tsu.tomsk.su (8.8.5/8.8.2) with UUCP id DAA17058; Wed, 17 Dec 1997 03:31:54 +0700 (TSK) Received: (from vas@localhost) by vas.tsu.tomsk.su (8.8.8/8.8.8) id XAA03408; Tue, 16 Dec 1997 23:18:15 +0700 (KRS) From: Victor Sudakov Message-Id: <199712161618.XAA03408@vas.tsu.tomsk.su> Subject: Re: ac does not work in FreeBSD 2.2.2 In-Reply-To: from "Shaun" at "Dec 15, 97 04:41:49 pm" To: sfinn@thecore.com (Shaun) Date: Tue, 16 Dec 1997 23:18:15 +0700 (KRS) Cc: dwhite@resnet.uoregon.edu, questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Shaun wrote: > 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. vas: {3} /usr/sbin/ac total 0.00 vas: {4} -- Victor Sudakov mailto:vas@obluo.tomsk.su http://www.obluo.tomsk.su/~vas PGP public key: finger vas@obluo.tomsk.su