LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-10-2007, 03:46 AM   #1
linuxcrazyguy
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Rep: Reputation: 15
login won't login


I'm building somewhat of a strange livecd and I cannot figure out how to get logged in.

My init actually just starts the bash shell.
From there I want to figure out how to login.

I have compiled login from util-linux and I have an /etc/passwd that looks like: "root::0:0:root:/root:/bin/bash"

When I type "login -f root" I am still prompted for a password and cannot login even with a blank password. (I did not enable shadow in MCONF)
I did not compile util-linux with PAM support so I'm not sure what is wrong.

If anyone has more information on how I would be able to get logged in I would appreciate it.

Many thanks in advance!
 
Old 04-10-2007, 12:45 PM   #2
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
There is probably a smoother way of doing it - but expect can be used as a quick work around until you stumble on the easier way.
 
Old 04-10-2007, 03:31 PM   #3
linuxcrazyguy
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Zention do you have any detailed information on how to do it either way?

Thanks
 
Old 04-12-2007, 09:57 PM   #4
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
expect will only help if you can log in.

Check out /etc/shadow

that is where the password is actually stored normally, though an x is normally required in the passwd file.

This assumes you are using the shadow-utils package.

You could set a password, and it probably is advisable to do so, if the machine touches the net without a password root will be exposed especially if you run any software which allows a remote login, which means any data on the harddrive is potentially available as well as the machine being usable for the time you have the livedisk running.

root is already logged in, it is running init and bash.

expect will allow you automate things requiring command line input, but I think the first thing to do is to give root a password.

As the system will be root anyhow you can login in as whoever.

It sounds like your problem is to do with auto login really, link below should help:

http://gentoo-wiki.com/HOWTO_build_a...D_from_scratch
 
  


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
Key repeat on graphical login screen is too fast, Its almost impossible to login. FC5 spacecoyote Fedora 8 05-13-2010 08:53 AM
Cannot login after upgrading to kde 3.4, brings me back to login screen whitelinux Linux - Software 1 08-23-2006 07:53 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
Computer freeze after graphical login and comand line login TheBrick Linux - Software 3 04-20-2006 10:53 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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