Command History - size, security and more informations


 
Thread Tools Search this Thread
Operating Systems Solaris Command History - size, security and more informations
# 1  
Old 05-28-2012
Command History - size, security and more informations

Hi!

I need to know how to increase the size of History, creating greater security in it, and view commands with details such as date and time;

Also need to know if they learn to write a 'history' command made ​​via WinSCP;

Thank you!

---------- Post updated at 01:36 PM ---------- Previous update was at 11:18 AM ----------

Another question about history: How to view the history of all users?
# 2  
Old 05-30-2012
shell history is shell dependent - the name of the history file is different for different shells like ksh, bash.

What Solaris version do you have, do you have admin privs, and what shell(s) are your users allowed to use?

Example: default shells on Solaris 10 are: csh, sh, ksh, and bash.
# 3  
Old 05-30-2012
I have admin access and I like to use bash, but the default shell for all users is sh.
I am using Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
# 4  
Old 05-30-2012
Solaris 10 /bin/sh, which shouldn't be set as default shell for regular users by the way, doesn't record user's command history. In any case, a solution based on shell command history is unreliable. If you want to monitor what users are launching, better to configure/enable Solaris auditing.
# 5  
Old 05-30-2012
Tank u very much!!!!
Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk/sed inserting muliple informations in one column

I'm probably sure I need to use either awk or sed judging by research but I'm not sure what exact command I have to do to do following...:wall: So this is my text file CPU 1 2 3 4 5 6 RAM 2 3 4 5 6 7 HAR 3 4 5 6 7 8 -------------- my input: Cur_CPU=10 Cur_RAM=11 Cur_HAR=13 Desired... (5 Replies)
Discussion started by: simonirang
5 Replies

2. Shell Programming and Scripting

Increase bash history size

Hi I am trying to increase the number of commands recorded in my .bash_history file. I followed what is indicated and have add to my .bashrc export HISTCONTROL=ignoreboth export HISTSIZE=1000000 export HISTFILESIZE=1000000 export HISTIGNORE='ls'but the .bash_history only contains 690... (5 Replies)
Discussion started by: louisJ
5 Replies

3. UNIX for Dummies Questions & Answers

The history command: See other users command history

Can anyone tell this: If two users are logged into the same server from different locations. Is there a way to see the history command of the other user? I tried the history command, but it is showing me only the commands I used. Thanks in advance for your help. Iamnew2solaris (1 Reply)
Discussion started by: iamnew2solaris
1 Replies

4. UNIX for Dummies Questions & Answers

vi command history

How do you look at the whole list of previous commands you have used in VI? I know you can use the up and down arrows, but I know there's a way to see the full list. (5 Replies)
Discussion started by: cokedude
5 Replies

5. Shell Programming and Scripting

Runtime informations - bash script

Hello, I'm running a bash script and I'd like to get more accurate a runtime information then now. So far I've been using this method: STARTM=`date -u "+%s"` ......... *script function.... ......... STOPM=`date -u "+%s"` RUNTIMEM=`expr $STOPM - $STARTM` if (($RUNTIMEM>59)); then... (3 Replies)
Discussion started by: TehOne
3 Replies

6. Programming

how to programatically obtain informations about existing NICs on the system

hi, i would like to know how to programatically obtain informations about existing NICs (both configured and non-configured if possible) on *NIX? i need to write simple *NIX C/C++ program that will have these informations. i have tried to search forums (and also google) with no luck. any help... (2 Replies)
Discussion started by: nikoladsp
2 Replies

7. UNIX for Dummies Questions & Answers

Help with the History command

How do I make the history command, in addition to the past commands, display the hard path to the place where i modified or did my past action? thanks in advance (2 Replies)
Discussion started by: cleansing_flame
2 Replies

8. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

9. Shell Programming and Scripting

how to read i-node informations (date of creation)

Hi, I'm looking for a way to get the date of creation for a file. Is it possible ? I know that these informations are in the i-node but I don't know how to access them (if the 'find' command can do it with option -ctime, I have reasons to believe in it). Thanks for helping me ! (1 Reply)
Discussion started by: mullmafr
1 Replies

10. UNIX for Dummies Questions & Answers

command history

Dear all, I am using solaris 6 O.S. and root previlege.I want to know how to get history of commands given by diff. users logged into the server. I know that history command gives the list of previous commands for that particular log in session. In the simillar manner can I get simillar history... (3 Replies)
Discussion started by: vikasdeshmukh
3 Replies
Login or Register to Ask a Question