URN Logo
UNIX Resources » Linux » Linux Forum » Mandrake Linux Support » Page.1 » .bash_history Appears Empty...
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
.bash_history Appears Empty...
Subject: .bash_history Appears Empty...
Author: maleck    Posted: 2006-06-30 04:15:19    Length: 1,080 byte(s)
[Original] [Print] [Top]
today I found no bash history in my acconunt. Is it normal? does mandriva 2006 reset history after some time or when the file get some limit size? or must I think that somebody has nothing better to do than hack my machine?
Yesterday I let it online, with kmldonkey running... so may be I must forget about mldonkey?

And, a little help hear.... I am not an administrator, but a user, and I have learned many things I have need as a user, and basic admin things I need to manage my machine, but I have not learned advancet administrator tools and tactics, because I am not an admin, and I have many others things to learn... so, can someone (with admin skils) wirte a cron script to backup the bash_history. Somthing like:
-make backup each X minutes or seconds or whatever
-if the backup size is bigger than the original in the next check, keep backup and write a log file or send a mail or both
-if backup is size is less or equal, save new backup

I think it must help to record wathever an intruder is doing from your account... or not?
[Original] [Print] [Top]
Subject: .bash_history Appears Empty...
Author: x86processor    Posted: 2006-07-02 02:32:41    Length: 636 byte(s)
[Original] [Print] [Top]
[div class='quotetop']QUOTE[/div][div class='quotemain']
has nothing better to do than hack my machine?
[/quote]
Hacking is the art of programming. Hackers are programmers who pursue programming as an artistic passion and solve challenging problems.

Crackers are people who steal passwords, break down into systems, shutdown networks etc.

Please use appropriate terminology.

Never used Mandrake, but, check if you have your ~/.bash_history file. What is the output of:
Code:
br /]history | tail
----
Linux is the kernel. The entire system is called GNU/Linux.
http://www.gnu.org/gnu/linux-and-gnu.html

My domain: shakthimaan.com (Offline)
orkut ID: shakthimaan
IRC nick: mbuf
[Original] [Print] [Top]
Subject: .bash_history Appears Empty...
Author: maleck    Posted: 2006-07-02 14:50:12    Length: 1,711 byte(s)
[Original] [Print] [Top]
Hi, x86processor, First excuse me if I used the word "hacker" in a wrong way. I have been consient of the difference between hacker and craker for long time, even I have explained it to many people.... i just forgot it when I wrote the post. The problem I was trying to comment here is that the ~/.bash_history file was empty that day in the morning. I realize that because I started the day searching for a command I was using recurrenly with the "up" key and there was nothing up. I check for the ~/.bash_history file and did
less ~/.bash_history
with an empty resoult. rigth know the file contains only the last session of work. the
history | less
command gives:
  399  cp propagacion-lHmTun.e tests/
  400  mathematica Vint.nb &
  401  kmymoney
  402  GoogleEarthLinux.bin
  403  cd
  404  ls .bin/
  405  googleearth
  406  history
  407  history tail
  408  history | tail
As you see, only 405 commands registered in ~/.bash_history. those commands belong to the last session of work.
same command as root give:
  992  aticonfig
  993  aticonfig --initial
  994  top
  995  w
  996  exit
  997  urpmi ddd
  998  ping www.google.com
  999  mcc
 1000  exit
 1001  history | tail
And truts me, I work a lot more as user than as root. Actually, I only use root to do admin and maintenance stuffs.
As usual, I appreciate all your info and help.
[Original] [Print] [Top]
Subject: .bash_history Appears Empty...
Author: x86processor    Posted: 2006-07-03 02:08:03    Length: 855 byte(s)
[Original] [Print] [Top]
[div class='quotetop']QUOTE[/div][div class='quotemain']
those commands belong to the last session of work.
[/quote]
Good.
[div class='quotetop']QUOTE[/div][div class='quotemain']
same command as root give:
[/quote]
Yes, it has its own history.

Check these useful links:

http://www.redhat.com/archives/redhat-list...y/msg00544.html

http://www.ducea.com/2006/05/15/linux-tips...r-bash_history/

http://www.faqs.org/docs/gazette/tips.html
----
Linux is the kernel. The entire system is called GNU/Linux.
http://www.gnu.org/gnu/linux-and-gnu.html

My domain: shakthimaan.com (Offline)
orkut ID: shakthimaan
IRC nick: mbuf
[Original] [Print] [Top]
« Previous thread
Home Server Runtime
Mandrake Linux Support
Page. 1
Next thread »
Kernel Upgrading Fault
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:02:35, cost 0.032946109771729 ms.