![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Displaying a dialog box using terminal commands | keshav.murthy@r | Shell Programming and Scripting | 1 | 07-16-2008 12:36 PM |
| Can't login root account due to can't find root shell | neikel | AIX | 2 | 01-30-2008 11:07 PM |
| How to allow root login from a specified terminal ? | XP_2600 | SUN Solaris | 3 | 11-27-2006 04:01 AM |
| Terminal Commands | indigoecho | UNIX for Dummies Questions & Answers | 5 | 12-16-2003 01:41 AM |
| won't allow root login from another terminal to my sun | kymberm | UNIX for Dummies Questions & Answers | 3 | 07-03-2003 01:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
If you are on a Linux box, you could use Snoopy. Quoting from the Sourceforge webpage:
Quote:
|
|
||||
|
As an answer to the original problem try something like this in /etc/profile Code:
RU=`who am i | cut -f 1 -d " "`
if [[ $RU = "root" ]]
then
HISTFILE=/someplace_safe/.ihist/.sh_hist_$RU_$$
HISTSIZE=1000
export HISTFILE HISTSIZE
else
HISTFILE=/$HOME/.sh_history
HISTSIZE=1000
export HISTFILE HISTSIZE
fi
This creates a history file for each root login, the mtime of the file gives you a clue as to which "root" login you are dealing with. |
|
|||||
|
Quote:
This is also a good Solution......... Thanks jim mcnamara.... ![]() |
|
|||||
|
Quote:
Quote:
|
|
|||||
|
Hi...
First see wether all perameters which you want to change through ~/.bashrc file, changes as per your requirement.In short wether all commands (Excluding '/usr/bin/script ) in ~/.bashrc file work fine...... If yes then just put the '/usr/bin/script -q ~/file.log' command at the very last line of your ~/.bashrc file and then see wether it works or not.... ![]() Do not put the '/usr/bin/script -q ~/file.log' command at begining or anywhere in between the ~/.bashrc file . Hope it should work this time now..... Cheers.... Last edited by Reboot; 10-29-2008 at 05:03 PM.. |
|
|||||
|
Quote:
|
![]() |
| Bookmarks |
| Tags |
| linux commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|