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 07-08-2005, 05:25 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
I have no name!


Hi folks,

Continued on "6.3. Entering the Chroot Environment"
http://www.sg.linuxfromscratch.org/l...06/chroot.html

Performed following steps;

# mount /mnt/lfs
# export LFS=/mnt/lfs
# mkdir -p $LFS/{proc,sys}
# mount -t proc proc $LFS/proc
# mount -t sysfs sysfs $LFS/sys
# mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
all went through without problem

# chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h
Code:
I have no name!:/#
Please advise how to proceed. Whether enter a name here? What is it for?

TIA

B.R.
satimis
 
Old 07-08-2005, 06:13 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
That is just the bash prompt and is perfectly normal to not display a name since your not setting any type of .bash_profile setup while using chroot, etc.
 
1 members found this post helpful.
Old 07-08-2005, 06:18 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi trickykid,

Quote:
That is just the bash prompt and is perfectly .........
Noted with thanks.

B.R.
satimis
 
Old 07-08-2005, 06:29 AM   #4
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by satimis
Hi trickykid,

Noted with thanks.

B.R.
satimis
Have you ever read this LFS page ???
Quote:
Note that the bash prompt will say I have no name! This is normal because the /etc/passwd file has not been created yet.
 
Old 07-08-2005, 06:54 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi freegianghu,

Sorry for my misunderstanding. I'm following
http://www.sg.linuxfromscratch.org/l...06/chroot.html

to proceed.

Because the command prompt changed from

[root@localhost ~]#
to
I have no name!:/#

I hesitated to continue whether it needed to enter a name or just ignoring it to continue on
6.4. Changing Ownership
http://www.sg.linuxfromscratch.org/l...gingowner.html

I'm proceeding cautiously worrying if one step going wrong I have to start from the beginning.

B.R.
satimis
 
Old 08-10-2011, 04:39 AM   #6
phanthaihuan
LQ Newbie
 
Registered: Jan 2010
Location: Vietnam
Distribution: RHEL, CentOS, Debian, Ubuntu
Posts: 8

Rep: Reputation: 0
Wink

Hello,

On my case, I did chmod /etc/passswd by command:

Quote:
chmod 700 /etc/passwd
after sign out and sign in, I see the message "I have no name".

Something to share

Regards,
Huan
 
Old 08-10-2011, 06:31 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by phanthaihuan View Post
Hello,

On my case, I did chmod /etc/passswd by command:

after sign out and sign in, I see the message "I have no name".

Something to share

Regards,
Huan
You do realise you just posted in a thread that is 6 years old????

About your answer: Did you read the full thread?

This message (I have no name!) is normal at this point and no actions have to be done! See this chapter: 6.4. Entering the Chroot Environment. This is true for LFS version 6.3 (discussed in this thread) and all the versions up to the current 6.8
 
Old 08-11-2011, 12:36 AM   #8
phanthaihuan
LQ Newbie
 
Registered: Jan 2010
Location: Vietnam
Distribution: RHEL, CentOS, Debian, Ubuntu
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,
You do realise you just posted in a thread that is 6 years old????

About your answer: Did you read the full thread?

This message (I have no name!) is normal at this point and no actions have to be done! See this chapter: 6.4. Entering the Chroot Environment. This is true for LFS version 6.3 (discussed in this thread) and all the versions up to the current 6.8
Thanks druuna for your reply. It's my mistake

Regards,
Huan
 
Old 08-11-2011, 01:12 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi phanthaihuan,
Quote:
Originally Posted by phanthaihuan View Post
Thanks druuna for your reply. It's my mistake
Don't worry about this, no real harm was done. Readers that stumble upon this thread will get the correct idea
 
Old 08-20-2011, 08:54 AM   #10
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 223

Rep: Reputation: 20
I think anyone needs to mark this thread as solved...
 
  


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



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

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