LinuxQuestions.org
Help answer threads with 0 replies.
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 04-07-2007, 12:54 PM   #1
linuxcrazyguy
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Rep: Reputation: 15
Mininum Requirements To Login To A System


Hi guys

I guess I'm kind of creating my own Linux from scratch.


I have a livecd that starts bash but it's not logged in as a user.

If I do "whoami" it says whoami: cannot find username for UID 0

Does anyone know the absolute bare minimum requirements to login as a user?

I have created an /etc/passwd file

I have "login" and "getty" binaries ready too.

If I type "login" I get login: PAM Failure, aborting: Critical error - immediate abort

If anyone can give me some pointers or links about what I'm missing and what it takes to be able to login I'd be very appreciative

Last edited by linuxcrazyguy; 04-07-2007 at 01:02 PM.
 
Old 04-07-2007, 03:41 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
This is quite old, but still informative: From-PowerUp-To-Bash-Prompt-HOWTO .

As far as the specific issues, there may be something wrong with syntax of the passwd file or some other problem where it can't resolve the UID to a name. And as far as the PAM crap, I have no idea. You might be better off building a PAM-less system for this.

Also, you could just build the usual LFS and just deviate from the 'recipe' where you felt like it.

Last edited by slakmagik; 04-07-2007 at 03:44 PM. Reason: misread one of the errors
 
Old 04-07-2007, 03:46 PM   #3
linuxcrazyguy
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
digiot thank you very much for your reply. I'd definitely be interested in creating a PAM-less system, if you have any other guides or info about that I'd be interested to know.

Thanks!
 
Old 04-07-2007, 04:38 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Sorry, I don't know of a guide and a cursory search didn't turn one up, but a more determined search might. AFAIK, for most things it should simply be a case of not having the libraries and/or explicitly not linking to them when you build. For others, you may have to take more strenuous efforts - looking at the Slackware source for the shadow package may be helpful.

Last edited by slakmagik; 04-07-2007 at 04:40 PM. Reason: added link
 
Old 04-16-2007, 12:03 PM   #5
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
Simple!

If you want to build your own Linux, you have 3 GREAT options to work from:

(Google them and post the links!)

LFS (Linux from Scratch)

Gentoo (Gentoo.org - simply the fastest distro, you can choose which bits you want to do yourself - provides a great tool "portage" to automatically compile everything for your setup, based on your settings and flags... hence, could take a few days to get a fully functioning gnome/kde system)

Slackware ... used to be pretty manual in the older versions, and all the tools are probably available on the livecds/installcds to make it fairly simple to do your own thing

KNOPPIX ... Ideal base to start off from, its a bootable livecd with everything you could dream of. The CD version is actually better than the DVD version since you can load the whole CD to RAM with the "toram" option. Based on Debian

And... to quote SuSe... "have a lot of fun..."


Last edited by tunasashimi; 04-16-2007 at 12:05 PM.
 
  


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
System Requirements nekhelesh Ubuntu 13 08-31-2007 04:57 PM
mininum installation ekdya Fedora 3 09-15-2006 02:37 AM
system requirements?? Zeriph Debian 3 07-27-2006 07:41 PM
System requirements enano loco Mandriva 2 04-10-2004 08:06 PM
X system requirements orange400 Linux - Hardware 2 04-08-2004 08:57 PM

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

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