Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-08-2004, 03:28 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
terminal reveals my root password


i'm pretty new to linux and have had a bit of a battle finding a distro that my puter gets on with, i have settled for mandrake 10. i live in the kde desktop at present and only fire up a terminal window when i really need to, emagine my horror when whilst showing a friend the basics and boasting of linux's security, i scrolled through previous commands i have typed, (using the arrow keys) and there it was, my root password!

surely this is not surposed to happen?
Old 06-08-2004, 03:31 PM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
It would only show it, in my experience, if you have typed it in without being prompted. All I can think is that you typed it before you typed "su" or you opened something which asked for it and you had given the terminal focus by accident before typing it in. Do you recall having to retype your root password recently?
Old 06-08-2004, 03:42 PM   #3
LQ Newbie
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
well i can't recall having to retype it and i'm pretty sure i didn't type it by mistake, it should be pretty fresh in my memory as i only installed this morning, tho i'm not going to bet on it!

is there a way to clear the list of commands i have typed? maybe then i can put this worry to bed.
Old 06-08-2004, 05:17 PM   #4
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
~/.bash_history - delete it or remove the lines.

(I often type in my password in the username field - getting ahead of myself - and get a funny feeling when I see it sitting there on the screen. So anything's possible.)
Old 06-10-2004, 05:03 AM   #5
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you can control the size of the history and the history file by setting


in /etc/profile.

Setting them to zero would disable history?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 02:29 AM
Can't type password in terminal ts77351 Linux - General 1 06-12-2004 08:21 PM
stracing nmap reveals weirdness rkef Programming 1 04-27-2004 02:14 PM
lsmod reveals no loaded modules after new kernel src install... jdaniel Linux - General 1 03-01-2004 10:50 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration