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 - 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


Reply
  Search this Thread
Old 12-19-2008, 09:31 AM   #1
jonhanna
Member
 
Registered: Dec 2008
Posts: 31

Rep: Reputation: 15
question on kernal and giving user privilege commands


I have another question for my homework and i have been looking all week and it is due tomorrow.I have been looking and cant find an exact answer and i dont want to give the wrong answer on my homework. my ist question is where is the kernal executable program stored in the Linux directory hierarchy and what is the file name of the Linux kernal stored in that directory? my second question is mored or less just seeing if i am right. the question is how would you allow s user to execute privileged commands without giving the user the superuser password? I am pretty sure that you would use the su command with the -c option to run a single command with root privileges, and then once it is finished the user would go back to the original shell. correct?
 
Old 12-19-2008, 09:42 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by jonhanna View Post
where is the kernal executable program stored in the Linux directory hierarchy and what is the file name of the Linux kernal stored in that directory?
The kernel can be stored at any random position, as long as the bootloader can see it. But usually they are stored at /boot, it can have any name as well. Traditionally "vmlinuz" is used. For more info you should read about lilo and grub and how they are configured. Also, google for manuals to compile and install a custom kernel. Covering these two topics you should end with a clearer view of the whole thing.

Quote:
I am pretty sure that you would use the su command with the -c option to run a single command with root privileges, and then once it is finished the user would go back to the original shell. correct?
Yes. Read also about "sudo" and "suid".
 
  


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
Giving privilege to user Corrado Linux - Security 5 08-20-2008 05:19 PM
User privilege to partition atlaika Ubuntu 3 04-03-2006 01:44 PM
Giving a user (not a root) an access to some system commands asschay Linux - Newbie 8 09-08-2005 05:53 PM
giving user access to 'shutdown -r now' or -h commands Lleb_KCir Linux - General 2 03-16-2005 11:50 AM
Changing User Privilege question johnnygnote Linux - Software 6 11-13-2003 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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