Anonymous_User

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-02-10
06:04
933 views
How to audit shell built-in commands? set -o audit 2?
Hi all,
I want to see shell built-in commands (pwd, cd, kill) in the Command
Control report. I found in documentation that "set -o audit 2" means "2:
Enables auditing of all commands including commands that are built into
the user's shell. This level of auditing can affect login times.".
Ok, I've added set -o audit 2 to /etc/profile.pcksh and changed a user
shell to /usr/bin/pcksh, then I made a simple test: cd /home/test; ls;
pwd; ls. In result in the report I see only two ls commands, without cd
or pwd. Unfortunately the same for kill command.
I read some threads, like
'Manage-Internal-command-on-Linux-Unix-environment-via-PUM'
(http://tinyurl.com/lvsnomn) and understand that it is not possible to
control those commands (really?), but I am sure that PUM should audit
those commands.
If you know a solution, please advise.
--
AFridrih
------------------------------------------------------------------------
AFridrih's Profile: https://forums.netiq.com/member.php?userid=4626
View this thread: https://forums.netiq.com/showthread.php?t=49951
0 Replies