LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2010, 01:33 PM   #1
codepoetchris
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Undo Login Setting from Console


Hi, I'm brand new to ubuntu and very green when it comes to Linux in general. I have recently installed Ubuntu Desktop version 10.10 for my media pc (a friend of mine showed me xbmc, awesome!). I modified my install so that I don't have to enter a password when turning it on. The problem seems to be that when I did the install I chose to encrypt my home directory. Now, since I don't enter a password, the machine spews a few errors and does nothing. I finally got it to boot to a console window however I don't know how to undo what I did from the gui. I'm basically trying to get to System > Admin > Login Window > Security without the gui and "check the box" to require a password on login. Any clue as to which config file this setting is stored in?

Last edited by codepoetchris; 12-26-2010 at 01:44 PM. Reason: clarity
 
Old 12-26-2010, 04:22 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello codepoetchris, welcome to LQ,

if I understood your question correctly you don't have a password for your useraccount, but you need one. In order to assign a new password to a user you can (as root) use the command
Code:
passwd username
With Ubuntu you will have to use the sudo command instead since you cannot login as root
Code:
sudo passwd username
where you have to substitute the word username by the real loginname of the user.

Markus
 
Old 12-26-2010, 04:35 PM   #3
codepoetchris
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
My account actually has a password which is required if you want to encrypt your home directory. While logged in I checked the box so that the password is not required upon login. So, when I click on my login id from the login menu it attempts to login without a password which causes my login to bomb and the system behaves as if it's frozen.
 
Old 12-26-2010, 04:48 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, I understood that the password would be needed to decrypt the data, and if you login without a password, you can login but without decrypting your data.

Look at the manpage of "shadow"
Code:
man 5 shadow
there you learn how you can change your configuration in order to use a password again. The /etc/shadow file includes the passwords for the users or an empty field if there is no password necessary.

Markus
 
Old 12-26-2010, 05:17 PM   #5
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
As root, edit /etc/gdm/gdm.schemas and make your changes in this section:

Code:
      <schema>
       <key>daemon/TimedLoginEnable</key>
       <signature>b</signature>
       <default>true</default>         <====change to false
     </schema>
     <schema>
       <key>daemon/TimedLogin</key>
       <signature>s</signature>
       <default>yourusername</default>
     </schema>
     <schema>
       <key>daemon/TimedLoginDelay</key>
       <signature>i</signature>
       <default>10</default>
     </schema>
Then save and restart.
 
Old 12-27-2010, 09:37 AM   #6
codepoetchris
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you Harry and Markush. I will keep these in mind if the issue comes up again. I ended up getting impatient and just reinstalling the OS. I didn't have much setup yet so it wasn't a big deal. I wasn't even able to login period. Note-to-self, if you install your OS and encrypt your home directory do not check the box to not require a password on login.
 
  


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
[SOLVED] unable to login from console f1 to f6. But able to login into GUI in f7. ashwin_cse Red Hat 4 04-22-2010 10:26 AM
Not able to login to server thru console but able to login via network using putty maxy7710 Linux - Newbie 4 01-12-2010 11:27 AM
To switch from console login to CDE login Paris Heng Solaris / OpenSolaris 2 04-23-2009 08:53 PM
Setting font in one console doesnt override the default setting Lakki Linux - Enterprise 0 09-01-2008 09:19 AM
users cant able to login in any console,but root can login. skumar.v Linux - Security 1 04-19-2008 07:57 AM


All times are GMT -5. The time now is 04:27 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration