LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2010, 10:05 PM   #1
aicrop
LQ Newbie
 
Registered: Jul 2010
Location: Phlippines
Distribution: CentOS
Posts: 14

Rep: Reputation: 0
[HELP]Cant access /usr/src


Hello Guys!

I'm trying to make a folder in /usr/src
http://i913.photobucket.com/albums/a..._King62/aa.jpg

And i also tried to use visudo but it wont work even sudo isnt working
http://i913.photobucket.com/albums/a...King62/aaa.jpg

I trying to make a folder because im going to extract my kernel there, i hope someone would be able to help me out.

yours truly,
Esons
 
Old 08-06-2010, 10:20 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
you need to be root. either su to root or prefix your command with sudo. visudo is the sudoers file editor.
 
Old 08-06-2010, 10:23 PM   #3
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Yup, you need to be root (via "su" or "sudo su" or "sudo command" )

Same like here:
http://www.linuxquestions.org/questi...sr-src-823167/
Read through that again. You will not want to build a kernel as root. Make a directory in your home-directory and use fakeroot.
 
Old 08-06-2010, 10:38 PM   #4
aicrop
LQ Newbie
 
Registered: Jul 2010
Location: Phlippines
Distribution: CentOS
Posts: 14

Original Poster
Rep: Reputation: 0
I already tried using sudo sudo but still it wont let me. in ubuntu sudo works..but i dont know why its not working in Centos

http://i913.photobucket.com/albums/a...r_King62/a.jpg

how would i know that I'm the "root"?

Last edited by aicrop; 08-06-2010 at 10:39 PM.
 
Old 08-06-2010, 10:44 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Well like it says: ctuser is not in the sudoers file. You have to add ctuser to sudoers before it will be able to sudo. You can do that as root.
 
Old 08-06-2010, 10:45 PM   #6
aicrop
LQ Newbie
 
Registered: Jul 2010
Location: Phlippines
Distribution: CentOS
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by j1alu View Post
Yup, you need to be root (via "su" or "sudo su" or "sudo command" )

Same like here:
http://www.linuxquestions.org/questi...sr-src-823167/
Read through that again. You will not want to build a kernel as root. Make a directory in your home-directory and use fakeroot.
can you please teach me how to create a directory and use fakeroot?
I'm really new in linux platforms.
 
Old 08-06-2010, 10:52 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,350
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
It's been a while since I used CentOS, but, instead of sudo, you could try su to log in using the root password.

Not all distros disable the root login by default the way Ubuntu does (that's one of my beefs with Ubuntu, but "sudo su" gets around it).

Again, it's been a while, but I think you might even be able to login to CentOS as root from the initial login screen, do your root stuff, then log out.
 
Old 08-06-2010, 11:13 PM   #8
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
to make a directory you can use the file-manager (nautilus for gnome, dolphin/konqueror for kde, thunar for xfce and pcmanfm for lxde).
Right click in your home-folder, click on new and give it a name.
Or:
open a terminal and do
Code:
cd
to go to your home
Code:
mkdir Kernel
And you got a directory called Kernel in your home directory

I was assuming you would be using Ubuntu. I don't know how kernels are build in Centos.
Have a look at their wiki.

That would be the Debian-way (the extra-short version ):
http://forums.debian.net/memberlist....profile&u=8163

If you ask me: forget about sudo and use su:
Code:
su
enter your password
do what needs to be done
Code:
exit
to exit root.
 
Old 08-06-2010, 11:22 PM   #9
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
In general the prompt in a terminal changes if you are a user or a root.
It quite common to use
$
for a user
and
#
for root.
Thats for bash (i think), it might be different (say for tcsh), but often it is that way. From your screenshot it looks like it would be valid for you.


Else type:
whoami
If it says "root" you are root. ' id -u ' would work too, root should be 0.
 
  


Reply


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
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 09:43 AM
denied access to move files into /usr/src directory Larry O Linux - Newbie 4 01-18-2005 12:14 AM
/usr/src/??? iain.ross Linux - Software 5 08-24-2004 03:18 PM
/usr/src ??? gibbylinks Red Hat 1 10-24-2003 04:05 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 04:24 PM


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