Require some way or shell in which commands doesnot gets logged in history file


 
Thread Tools Search this Thread
Operating Systems Solaris Require some way or shell in which commands doesnot gets logged in history file
# 1  
Old 06-05-2009
Require some way or shell in which commands doesnot gets logged in history file

Guys,
can u tell me some way in which the commands i execute on solaris system doesnot gets logged. It should not appear in history file.. Is there any shell which provide such solution or can I turn off the logging, if yes then how...

Help will be appreciated
Thanks
# 2  
Old 06-05-2009
/bin/sh
# 3  
Old 06-05-2009
History is user controllable by the shell, so you can just modify some environment variables to do this.

In sh/bash/ksh/zsh, those variables are:

HISTSIZE=0 # limits history size to zero (most shells still remember the previous command until exit)
HISTFILE=/dev/null # sends history file to /dev/null instead of somewhere useful (usually best to leave it unset)

Just because your commands aren't visible in your history doesn't mean they are being logged. Solaris systems can be configured to log all exec() calls by modifying audit policy flags in /etc/security, for example.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Script require to do telnet & run few commands

I am new in scripting, I need script(BASH) which do telenet to one of the elements & run few commands , after running it successfully it will check status of files & exit. Help is greatly appreciated 🙏 (2 Replies)
Discussion started by: Vinesh_123
2 Replies

2. Debian

Some commands not logged in pacct

Hi, Examining the Debian Linux logfiles, I found out that not all commands are logged in my pacct (/var/log/account/pacct) For instance, if I run and stop Wireshark and do after that # lastcomm | grep "wireshark" The wireshark command is logged as expected. # lastcomm | grep... (1 Reply)
Discussion started by: suvios
1 Replies

3. Shell Programming and Scripting

history commands

Hi Guys, I am running RHEL5, I am trying to find out the history of the cammands that were executed on my server. I have files that are missing I just want to find out what happened to them. I used history | more but I can't find anything related to my query. I also checked... (1 Reply)
Discussion started by: Phuti
1 Replies

4. Shell Programming and Scripting

Does running a cron job of a user require the user to be logged in?

Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed? (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

5. UNIX for Dummies Questions & Answers

How to review the history and the commands that has been done in this history?

Hello every body, Kindly inform me How Do i find out the time I executed a command previously on UNIX Solaris?? To be more specific and more clear about what i want to know is that I want a command the enables me to know the history and which command i run at this history/time. FYI I used... (5 Replies)
Discussion started by: ahmedamer12
5 Replies

6. UNIX Desktop Questions & Answers

ssh command doesnot excute commands in the destination server

Hi All, I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands. ssh xzur0211pap spaceleft=`df -k /home |tail -1 | awk '{print $5}'` spaceleft=${spaceleft%\%} if ]; then echo "ALERT : HUFS(/home $spaceleft)" exit 0... (3 Replies)
Discussion started by: gaddamja
3 Replies

7. Solaris

Are FSCK commands logged during single user mode?

Who knows if when working in the single user mode that any command are logged or could b elogged specially if I do a fsck I like at least to see when I did start it. (1 Reply)
Discussion started by: manni2
1 Replies

8. Shell Programming and Scripting

Script to identify logged users & commands executed

Hi All, I am trying to write a script to get the user information & the command executed. I tried something like this : w | sort | awk '{print$5$6$7}' My requirement is to identify the users who execute the same command at same time. I need the user name & the... (2 Replies)
Discussion started by: vijayarajvp
2 Replies

9. UNIX for Dummies Questions & Answers

Need Help !....pls i require All n Everything About Unix -History,Development..evrthg

i need to know abt Unix Development,History,Features n Everything..... :confused: (2 Replies)
Discussion started by: Shank
2 Replies

10. UNIX for Dummies Questions & Answers

korn shell script to keep history of same file

Hello, How do I write a korn shell that will rename file with the current date. What I want to do is, I have a file that is re-written every day. But instead, I want to keep a 14 day history of the file. So I want to write a script that will rename the current file with a date attached to the... (2 Replies)
Discussion started by: watson2000
2 Replies
Login or Register to Ask a Question