LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-12-2002, 01:05 PM   #1
cam2k
LQ Newbie
 
Registered: Dec 2002
Posts: 6

Rep: Reputation: 0
Login


Hi!

the init procedure of common distribution (MDK 8.2 in my case) is complex enough for one that it only wants to learn linux through "the construction" of a mini system floppy based.
I have been copied directly my init, login, mingetty, ecc... from my mdk 8.2 distribution and obviously (this is my problem when i get my login prompt and try to login as root, my screen clean up and i'am prompted again!!! hostname login:

My system (mdk 8.2) use pam, and (i think) i've been copied everything is needed for that!

Luca
 
Old 12-13-2002, 03:27 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well for one I'd start by stopping it from clearing the screen, so you can see any error messages the login program might print before it closes. This is usually done by a line of escape codes in the /etc/issue file.
login does need the following files to work properly:
/var/run/utmp
/var/log/wtmp
/var/log/lastlog

So you might want to do a touch on those files and then chmod them to 644. I don't know what pam all needs but it shouldn't be too hard to get it running without pam.
Although it's very possible to do I really wouldn't base a floppy distribution off something like mandrake. I'd probably go for building an lfs system and then basing off of that. It allows you to start with a very minimal system which you have build yourself so you know where all the pieces and bits are.

www.linuxfromscratch.org
 
Old 12-13-2002, 03:39 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
just use init=/bin/bash

bypass the login and all that
 
Old 12-13-2002, 04:09 AM   #4
cam2k
LQ Newbie
 
Registered: Dec 2002
Posts: 6

Original Poster
Rep: Reputation: 0
just use init=/bin/bash

I can use this command only if i use a boot loader, right?
 
Old 12-13-2002, 04:48 AM   #5
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well if you aren't using a bootloader and can't set the init parameter then the default action in the kernel is to start one of these in the following order:
/sbin/init, /etc/init, /bin/init, /bin/sh

So if you don't have a init script anywhere then it will end up starting a normal sh. On most linux systems /bin/sh is just a link to bash.
But it depends on what you want to do with the floppy distribution you are creating, whether you want to add the whole login thing through the init script. You could also just modify the /etc/inittab file to start up different processes on each terminal instead of having it spawn a tty process which waits for a login.
 
Old 12-18-2002, 08:49 AM   #6
cam2k
LQ Newbie
 
Registered: Dec 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Hello!

I'am alive! i'am just "working so hard" about linuxfromscratch (thanks to Mik) There are too much sources to install, so...be patient ...i'll come back

Bye
Luca
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 02:05 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
login screen font size over 100 - can't login xzy2435 Linux - Newbie 1 11-20-2003 11:40 AM
Changin Graphical Login to command line login 3DLirio Linux - Newbie 2 10-16-2003 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:05 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