LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2009, 01:30 AM   #1
Deewanagan
Member
 
Registered: Sep 2008
Posts: 57

Rep: Reputation: 15
can't log in graphically after editing /etc/shadow


hi everyone,
i saw a tutorial in a book about breaking password in linux, it was mostly the same as its in here, it just needed to boot via a live cd, then mount the / partition, after that delete the password in /etc/shadow. well i tried it on my machine, it did worked. but i could only get inside computer via terminal(crtl+alt+Fx) not graphically. does anybody know why?

Tanx

// Moderator Note: I've pruned your post from the thread you posted in originally. Although your issue is related, it's still better served in its own thread. I've also gone ahead and moved your post to the Software forum for better exposure.

Last edited by win32sux; 08-02-2009 at 02:40 AM. Reason: Added reference link.
 
Old 08-02-2009, 06:29 PM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
The GDM has an option to not allow users with empty passwords. Is this what you've done? Are you logging in to the terminal with no password?
 
Old 08-09-2009, 02:21 AM   #3
Deewanagan
Member
 
Registered: Sep 2008
Posts: 57

Original Poster
Rep: Reputation: 15
i didn't know about that, i will search for it and post the result,
yes i can login into terminal without a password.
tanx
 
Old 08-09-2009, 05:59 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
You really should not use accounts with no password.

I would login to the terminal and set a new password with the passwd command.
 
Old 08-09-2009, 10:09 AM   #5
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Quote:
Originally Posted by Deewanagan View Post
i didn't know about that, i will search for it and post the result,
yes i can login into terminal without a password.
tanx
So yeah, you removed the password from your account, the the GDM setting to disallow empty passwords was set (which it is by default.) Do you necessarily want no password for your account? Because another setting you can do through the GDM is autologin for a particular user.

If you do want an empty password, I'd at least recommend that you disable remote logins for that user. (Of course you are entitled to setup your system however you'd like)
 
Old 08-10-2009, 02:39 AM   #6
Deewanagan
Member
 
Registered: Sep 2008
Posts: 57

Original Poster
Rep: Reputation: 15
tanx for your replies,

i just wanted to see if i could break the password of an account, there is no way i would want an account with out a password.

tanx again,
jahed
 
Old 08-10-2009, 09:43 AM   #7
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Well, if you have root access, you can reset the password of any account.

What you did is effective if you forget your root password.
 
  


Reply



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
Can't log in after editing x-server configuration with Intel driver dave1972 Linux - Software 3 11-02-2008 06:58 AM
The X Server won't log in after i tried editing the Xsession file on Fedora Core 3 SHERB142 Fedora 3 06-07-2005 12:18 PM
/etc/shadow- (notice the dash after the word shadow) shellcode Linux - Security 1 09-03-2004 04:54 AM
log file editing.... wedgeworth Linux - Software 2 11-13-2003 06:16 PM
HELP!! Problem editing the shadow file in Single user mode natso Linux - Security 2 05-28-2002 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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