LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2006, 10:58 AM   #1
kuratkull
LQ Newbie
 
Registered: Jul 2004
Location: Estonia
Distribution: Debian Etch
Posts: 18

Rep: Reputation: 0
Locked myself out


"Debian Etch"

Hi, I just managed to fiddle around with sudo and stuff, and locked myself out. Before that; when i used "sudo" it didn't accept my root password. So i tried to get it working. These are the commands I used. (kuratkull - uprivileged user, root - root)

under "su":
Quote:
sudo adduser kuratkull admin
(i should've replaced admin with root?)

tried
Quote:
sudo passwd root
after some fiddling I thought that it wasn't worth it and as i thought i had enabled sudo before, i wanted to disable it with the next command:

under "su"
Quote:
sudo passwd -l root
now i can login under my unprivileged user, but nothing accepts my root password.

Is there a way to get access to the root account :/
(although I think it's very unlikely, these systems are sturdy)

PS: Later OSSEC notified:

Quote:
Received From: localhost->/var/log/auth.log
Rule: 5901 fired (level 8) -> "New group added to the system"
Portion of the log(s):

groupadd[8713]: new group: name=admin, GID=1002
Quote:
Received From: localhost->/var/log/auth.log
Rule: 5904 fired (level 8) -> "Information from the user was changed"
Portion of the log(s):

chfn[8722]: changed user `admin' information

Last edited by kuratkull; 10-17-2006 at 11:03 AM.
 
Old 10-17-2006, 12:19 PM   #2
kuratkull
LQ Newbie
 
Registered: Jul 2004
Location: Estonia
Distribution: Debian Etch
Posts: 18

Original Poster
Rep: Reputation: 0
YOU MAY CLOSE THIS!
Fixed


Mounted the partition in UBuntu LiveCD and changed /etc/sudoers and then
Quote:
sudo passwd root
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
locked out kwickcut Mandriva 6 11-14-2005 10:09 PM
Locked out of SU... wiskic10_4 Linux - Newbie 6 12-03-2004 06:49 PM
Locked out of RH 9 carmoda Linux - Security 3 12-16-2003 09:44 AM
Locked out downinthemine Mandriva 1 10-28-2003 04:00 PM
locked out of X VioLaToR Linux - Newbie 15 11-12-2002 04:36 AM


All times are GMT -5. The time now is 03:22 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
Open Source Consulting | Domain Registration