You are not logged in.
I have a user on my system called lfs. If I try to su into that user, by entering:
su - lfs
and then enter the password at the prompt I get this error:
-bash: exec: eng: not found
Any help would be appreciated!
Thanks,
Bashterm
Last edited by bashterm (2016-05-25 21:35:26)
Offline
Please post the content of /home/lfs/.bash_profile & /home/lfs/.bashrc
If this is for building an LFS system then these files should *not* exist, see http://www.linuxfromscratch.org/lfs/vie … guser.html
Offline
.bash_profile has:
exec eng -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
and .bashrc has:
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_G=$ (uname -m) -lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH
I got the instructions to make these files like this from their book, in chapter 4.4 of LFS v7.9. the link is here
Thanks for the speedy reply!
Bashterm
Last edited by bashterm (2016-05-25 19:54:33)
Offline
Just a typo then ?
Offline
I got the instructions to make these files like this from their book, in chapter 4.4 of LFS v7.9. the link is here
Ahem, yes well it's been a while since I last built LFS -- sorry about that...
You have a typo, ~/.bash_profile should be:
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
You have eng, it should be env
EDIT: Just to note, linuxquestions.org have a dedicated LFS subforum with some very knowledgeable members -- that would probably have been a better place to post this query:
https://www.linuxquestions.org/question … cratch-13/
Last edited by Head_on_a_Stick (2016-05-25 20:11:51)
Offline
I appear to have misspelled env in the bash profile. Sorry about that.
Head on a Stick, we reached the same conclusion at roughly the same time!
Thanks for you Time!
Last edited by bashterm (2016-05-25 20:12:34)
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline