LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices


Reply
  Search this Thread
Old 04-01-2003, 02:38 PM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Compiling Kernel (specifying Bash path)


How do I specify the path of bash when trying to build
the kernel (2.4.20)? My bash is installed on /usr/local/bin/bash
but I can't do anything about this as I don't have admin rights.
I tried various workarounds like setting BASH as an env variable
containing the path and editing the CONFIG_SHELL variable
in the Makefile but none of them work. Keeps giving me the
same error message:

make: /bin/bash: Command not found
make: /bin/bash: Command not found
make: /bin/bash: Command not found
make: /bin/bash: Command not found
rm -f include/asm
make: /bin/bash: Command not found
make: *** [symlinks] Error 127
 
Old 04-01-2003, 02:43 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
why are you compiling a kernel without root rights?
 
Old 04-01-2003, 02:44 PM   #3
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
Edit the makefile to use your bash instead of the default one
 
Old 04-02-2003, 11:20 AM   #4
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by iceman47
why are you compiling a kernel without root rights?
Because I'm not root on the machine I'm using.
 
Old 04-02-2003, 11:23 AM   #5
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by bahamat
Edit the makefile to use your bash instead of the default one
I tried setting CONFIG_SHELL to my bash path but it just
refuses to work. I also tried grepping and replacing around the
entire source tree for /bin/grep with /usr/local/bin/bash
but it still doesn't work.
 
Old 04-02-2003, 12:38 PM   #6
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
you should not compile anything as root. Every step should be run as a regular user except for modules_install and install (when you actually need it).

In general, for standard Linux security philosophy think about it this way.
Never ever use root. If you are unable to do something try a different way. If you still can't do it then use root to do that step and that step only.

Willy nilly using root privleges when you don't need it can get you into serious trouble unless you understand it.

Feel free to completely ignore this warning.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Path issue in Bash gd2shoe Linux - Software 2 08-28-2005 10:18 PM
Need help with finding path in bash script ylikone Linux - Software 1 08-02-2005 10:47 AM
Editiing my PATH for a bash shell??? lemay_jeff Linux - Newbie 3 07-06-2004 02:45 PM
BASH search path problem neilcpp Programming 4 02-07-2004 02:04 PM
java path in bash matador Mandriva 2 12-03-2003 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 AM.

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