Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Trying to build a minimum system but can't logon. So I just installed the programs I thought could log me on from chroot
sysvinit bash maybe shadow to confirm anyway heres waht I done
# installing filesystem
cd /mnt/lfs &&
mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin tmp var opt &&
for dirname in /mnt/lfs/usr /mnt/lfs/usr/local
mkdir bin etc include lib sbin share src
ln -s share/man
ln -s share/doc
ln -s share/info
mkdir dict doc info locale man nls misc terminfo zoneinfo
cd /mnt/lfs/var &&
mkdir -p lock log mail run spool tmp opt cache lib/misc local &&
cd /mnt/lfs/opt &&
mkdir bin doc include info lib man &&
cd /mnt/lfs/usr &&
ln -s ../var/tmp
rm -fr /usr/src/bash-2.05b
bzcat /mnt/data/new-lfs/src/bash-2.05a.tar.bz2 | tar xv
./configure --enable-static-link \
--target=i586 --with-curses \
cd /mnt/lfs/bin &&
ln -sf bash sh
rm -fr /usr/src/bash-2.05b
rm -fr /usr/src/sysvinit-2.84
bzcat /mnt/data/new-lfs/src/sysvinit-2.84.tar.bz2 | tar xv
make -e LDFLAGS=-static
ROOT=/mnt/lfs make install
rm -fr /usr/src/sysvinit-2.83
ln -s agetty getty
So I try to login using sulogin
su login complains about passwd
but lets me login with -e
exit chroot enviuorment
Sulogin didn't work first time so tried sulogin -e
gave me a shell. So I thought cool I'm logged in as root so I install shadow with the following
rm -fr /usr/src/shadow-4.0.3
bzcat /mnt/data/new-lfs/src/shadow-4.0.3.tar.bz2 | tar xv
./configure --target=i586 \
--disable-nls --prefix=/mnt/lfs/usr \
make -e LDFLAGS=-all-static
cp -f limits login.access /mnt/lfs/etc
sed 's%/mnt/lfs/var/spool/mail%/mnt/lfs/var/mail%' login.defs.linux > /mnt/lfs/etc/login.defs
ln -sf vipw vigr
ln -s ../../lib/libshadow.so
So I tried changing root passwd
bash-2.05a# passwd root
passwd: Cannot determine your user name.
Unable to determine your tty name.
Can't figure it out are there more files need than the passwd and group files,
Does passwd and sulogin dependant onother programs (dependencies). I thought sulogin would
check passwd and group then login. Seems like its a bit more complicated. Both programs are static ie
not a dynamic executable
must be a dependency problem or some config file I'm not aware of.
If so what are the minimum config files needed to log on root?