LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 04-24-2006, 03:07 AM   #1
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
Kernel rebuild by ordinary user?


Hi there,

Is there a way to sucessfully rebuild and install a linux kernel while logged in as a ordinary user (e.g. not root)? I mean do all the neccesary task for a kernel rebuild require root privileges?

The problem I encounter is that I try to cross-compile an kernel for a PPC target on a publica machine (the cross compiler is available only there), and when I attempt to build the target filesystem I get this message from 'make':
Code:
Failed to execute: make hello.tgz
make: *** [hello.tgz] Aborted
It's only a 'Hello World' example, nothing speccific but nevertheless it is a fully functional kernel... But if I cannot make the 'Hello' example work, I'm in big troubl...

Last edited by halturata; 04-24-2006 at 03:24 AM.
 
Old 04-24-2006, 04:19 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Provided the user has the privileges to do it.
(execute the make command is a must have)
 
Old 04-24-2006, 04:36 AM   #3
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Agrouf
Provided the user has the privileges to do it.
(execute the make command is a must have)
What are these privileges aside of being able to execute 'make'? Write permissions to particular folders (e.g. /usr/src/linux)? Execute permissions for specific commands? Anyway are there any commands which can be run only with root (concerning the kernel rebuild)?
 
Old 04-24-2006, 04:45 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Quote:
Originally Posted by halturata
What are these privileges aside of being able to execute 'make'? Write permissions to particular folders (e.g. /usr/src/linux)? Execute permissions for specific commands? Anyway are there any commands which can be run only with root (concerning the kernel rebuild)?
*Read the kernel sources, that is a must.
*Execute compiler.
*Write to the file system where the compilation takes place
*Write to the directories involved
There are more I'm not thinking of right off my head. The terminal will say if it can't do something.
There are no command which inherently can only be run as root, they can only be run as root if they are configured to only be run as root but root can allow the user to use them. If you are not administrator, it depends on how cool your administrator is.
 
Old 04-28-2006, 01:20 PM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
Old 04-28-2006, 04:29 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Closed the original because the dupe in software had more responses.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NFS Mount as an ORDINARY USER fahad26 Linux - Networking 4 07-24-2005 02:15 AM
Mounting NFS from an ordinary user fahad26 Linux - Networking 5 05-11-2005 08:11 PM
Can't startx as ordinary user WoodLark Slackware 8 03-26-2005 04:40 PM
Using k3b as ordinary user friendly_guy Slackware 4 11-06-2003 01:16 PM
Ordinary user can shutdown benjaminrtz Linux - Security 12 07-11-2002 10:07 PM


All times are GMT -5. The time now is 10:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration