LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-15-2003, 09:17 PM   #1
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
strange problem with root login/su


I was having some fun at the Gentoo forums, where gentoo users were posting interesting devices of piping commands to. I did:

cat /dev/urandom > /dev/mouse

The mouse cursor began jumping all over the screen, clicking, dragging, etc. It moved my KDE panel around, opened all kinds of windows... at one point I saw a KDE SU password dialog, but nothing was clicked or input. Anyhow, after 20-30 minutes of this behavior, I didn't think it was going to stop anytime soon, so I did a CTRL+ALT+BACKSPACE to shut down X. When I restarted X, I could not su in a terminal window. I tried chrooting with my Gentoo LiveCD and changing the password. It worked on the command line, but when I startx as normal user and try to su, I get "Permission denied." X/KDE is changing my root password when it starts.

What should I do? I can't emerge or write any config files within X, and I have to chroot with the Gentoo LiveCD if I reboot or start X.
 
Old 10-15-2003, 10:12 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
So you did this as root?

I would say someone has played a really bad joke on you.

Don't use root in X unless you really need to, and limit using root at all times. Never type commands that you do not understand as root, ever.
 
Old 10-15-2003, 10:13 PM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
LMAO>>........
hehe,,,,,,

can you do anything from the CLI at all..........
 
Old 10-15-2003, 10:16 PM   #4
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 31
Yes, I'm not surprised that that's what happens when you send random characters to the mouse device.
 
Old 10-15-2003, 10:17 PM   #5
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 31
By the way, listening to your hard drive is fun--especially if it's ReiserFS. FAT32 and ext2 or ext3 hard drives don't sound nearly as cool.
 
Old 10-17-2003, 12:33 AM   #6
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
DavidPhillips, no I did not run it as root. I was logged in as normal user.

320mb, I can do lots from the command line. I did "cat /dev/urandom > /dev/mouse" for one thing! I do not use X as root at all.

And by the way, I found out what happened: when the mouse was clicking around, it must have somehow removed my normal user from the "wheel" group. I re-added myself and all is fine again.

I may not be a Unix guru, but you guys sure assumed a lot, didn't you? Thanks for the help anyways.
 
Old 10-17-2003, 10:52 AM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
just a warning, not meaning to be critical of what your doing. We have to assume a lot on these forums to answer questions due to the many possibilities involved.

Anyway if you have an issue with a certain user then it's not as bad as root doing it.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange login problem wont let me in linuxmandrake Debian 1 11-25-2005 02:10 PM
Strange X login problem. rsamurti Slackware - Installation 4 11-08-2005 02:45 AM
Strange X-Login problem how do I diagnose? davidcrawley Linux - Software 7 09-30-2004 12:42 PM
Strange! SSH and Telnet login problem McSmooth Linux - General 7 10-03-2003 10:24 AM
Strange Login/GUI Problem ralph-wiggum Linux - General 7 08-06-2003 05:54 PM


All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
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