LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

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

Rep: Reputation: 0
terminal reveals my root password


hi,

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, 02:31 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
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, 02:42 PM   #3
shabene
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, 04:17 PM   #4
slakmagik
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, 04:03 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

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

HISTSIZE and
HISTFILESIZE

in /etc/profile.

Setting them to zero would disable history?
 
  


Reply


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 10:28 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
Can't type password in terminal ts77351 Linux - General 1 06-12-2004 07:21 PM
stracing nmap reveals weirdness rkef Programming 1 04-27-2004 01:14 PM
lsmod reveals no loaded modules after new kernel src install... jdaniel Linux - General 1 03-01-2004 09:50 AM


All times are GMT -5. The time now is 07:00 PM.

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