LinuxQuestions.org
Review your favorite Linux distribution.
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 01-27-2007, 09:12 PM   #1
gearhead364
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
Permission Denied


Okay, I am a complete newb to linux, I have used it before, but I never had to install anything.

I am currently in the process of installing alsa sound that I can get my sound to work, but everytime I try to make a new folder/directory I get a not that says "permission denied". I am currently trying to create the folder in "/usr/src". The same thing happens when I try to install and make install.

Distro: Mandriva 2007

Any suggestions and keep in mind that I am newb so any thing that is second nature to you, I probably do not know about.
 
Old 01-27-2007, 09:49 PM   #2
gearhead364
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
wow I feel stupid, just had to become root (su)

if any one has any pointers or suggestions so I can understand linux better

is there any way that I can set access so that I can create/modify folders without having to become root every time

Last edited by gearhead364; 01-27-2007 at 10:31 PM.
 
Old 01-27-2007, 10:55 PM   #3
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
As root:
chmod -R 777 /usr/src
 
Old 01-27-2007, 11:05 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by gearhead364
wow I feel stupid, just had to become root (su)

if any one has any pointers or suggestions so I can understand linux better

is there any way that I can set access so that I can create/modify folders without having to become root every time
Please don't. Making the /usr/ hierarchy world writable is a very bad idea.

Look into setting up sudo. It might be setup already. If not make yourself a member of the wheel group. Then run "visudo" to edit the /etc/sudoers file. There are one of two lines that you simply need to delete the "# " characters to uncomment them. The /etc/sudoers file is well commented.

Code:
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
# %wheel  ALL=(ALL)       NOPASSWD: ALL
Uncomment one of the lines above to allow you to use sudo.

Now, when you come to the install phase of installing from source, you just need to use "sudo make install" instead of "make install".
 
Old 01-27-2007, 11:45 PM   #5
gearhead364
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I will look into sudo, it would not be so bad if I did not have to become root in order use ssh, but that is currently the only way in order to access my school's cluster.

I will definately look in to Sudo and I am open to any other tips as well.
 
Old 01-28-2007, 12:01 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You shouldn't need to use root to use ssh. What goes wrong when you try to use it as a normal user (please post the exact error message)?
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
su -> permission denied progster Linux - General 9 06-28-2007 12:36 PM
Permission DEnied NomadABC Linux - Software 3 01-02-2005 09:53 AM
permission denied :( wogga Linux - Software 2 05-28-2004 12:52 PM
permission denied noir-gel Programming 8 11-17-2003 10:25 AM

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

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