Skip site navigation (1)Skip section navigation (2)
Date:        Fri, 26 Nov 1999 10:13:33 +0100
From:      =?iso-8859-1?Q?Rafa=B3_Banaszkiewicz?= <rafal@euromedia.pl>
To:        "Dima" <dima@mmc.net.ge>, <freebsd-security@FreeBSD.ORG>
Subject:   Odp: Commands execution loging
Message-ID:  <000901bf37ee$8bf9a0c0$1876a0d4@euromedia.pl>
References:  <383E47D5.7B264ECB@mmc.net.ge>

next in thread | previous in thread | raw e-mail | index | archive | help
> I have several users with shell (bash, sh) in my FreeBSD 3.2 system. I'd
> like to log all commands (for security reasons) they type and execute.
> Is there any possibility to pass all commands to syslog? I know about
> .bash_history and .history, but they are stored in users directory and
> without time of command execution, and I want to have records like
> "user    time    command".

    You have to turn on accounting (in example - in /etc/defaults/rc.conf
file), so all user commands are logged into /var/account/acct , savacct ,
usracct

>
> Dima
>


/* signature.c */
void main() {
printf("###\t###\t###\n\r#  #\t# #\t#  \n\r###\t###\t## \n\r#  #\t# #\t#
\n\r");
return;
}





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000901bf37ee$8bf9a0c0$1876a0d4>