Re: How to log all commands?
From: Dragan Cvetkovic (me_at_privacy.net)
Date: 05/30/05
- Next message: Mouse: "Re: Advice needed on SELinux policy"
- Previous message: Dragan Cvetkovic: "Re: How to log all commands?"
- In reply to:(deleted message) Davide Bianchi: "Re: How to log all commands?"
- Next in thread: Nekromancer: "Re: How to log all commands?"
- Reply: Nekromancer: "Re: How to log all commands?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 30 May 2005 15:48:55 -0400
Davide Bianchi <davideyeahsure@onlyforfun.net> writes:
> On 2005-05-30, Dragan Cvetkovic <me@privacy.net> wrote:
>> How would you logging all commands help if user writes a script and/or
>> programs to do what they are not allowed to do.
>
> If they are not allowed, then the program shouldn't be executable by
> them, so, unless they can escalate their privileges, the problem doesn't
> exists,
If they can execute nmap (OP's example), why should they not be able to run
other programs?
> for the rest, this where process accounting came into play, even
> if a program is started by a script, so not directly by typing the
> program name at the command line, the program is still run under the
> user's account.
True, but unless you peform some form of strace/truss/trace/..., what can
you prove about e.g. the following C program (fairly simplified):
#include <unistd.h>
int main()
{
DIR *dirp;
struct dirent *dp;
dirp =opendir(".");
while (dp = readdir(dirp))
remove(dp->d_name);
closedir(dirp);
return 0;
}
Sure, you can suspect something if there is activity of calling vi,
compiling program, running it and removing it, but you can't really prove
that.
On the other hand, if users don't have enough privilegies to run arbitrary
programs and/or compile them, there is no point in logging their activity.
Dragan
-- Dragan Cvetkovic, To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer !!! Sender/From address is bogus. Use reply-to one !!!
- Next message: Mouse: "Re: Advice needed on SELinux policy"
- Previous message: Dragan Cvetkovic: "Re: How to log all commands?"
- In reply to:(deleted message) Davide Bianchi: "Re: How to log all commands?"
- Next in thread: Nekromancer: "Re: How to log all commands?"
- Reply: Nekromancer: "Re: How to log all commands?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|