LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-05-2012, 05:08 PM   #1
gregoryp
LQ Newbie
 
Registered: Dec 2011
Location: Washington
Distribution: ubuntu server
Posts: 17

Rep: Reputation: Disabled
permission denied


Trying to change my server to a static IP from dhcp.....when I switch to SU and attempt to adjust my network interface via /etc/network/interfaces I get permission denied
 
Old 01-05-2012, 05:24 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
What is the exact command you are using to try and edit the file? What is the exact error message you get?
 
Old 01-05-2012, 05:27 PM   #3
gregoryp
LQ Newbie
 
Registered: Dec 2011
Location: Washington
Distribution: ubuntu server
Posts: 17

Original Poster
Rep: Reputation: Disabled
the exact command I am using is /etc/network/interfaces and the result is bash:/etc/network/interfaces: permission denied
 
Old 01-05-2012, 07:24 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try
Code:
su -
to ensure you get root's env setup, then
Code:
ls -l /etc/network
ls -l /etc/network/interfaces
 
Old 01-05-2012, 09:04 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Originally Posted by gregoryp View Post
the exact command I am using is /etc/network/interfaces and the result is bash:/etc/network/interfaces: permission denied
Interfaces isn't a program, you can't run it. It's a text file that needs to be edited with a text editor of some type, like vi or nano.
 
1 members found this post helpful.
  


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
permission denied gleneagles49 Linux - Newbie 2 08-04-2011 12:22 PM
[SOLVED] Permission denied nellaisamurai Linux - Desktop 3 11-27-2010 07:18 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
permission denied bake15 Linux - Newbie 7 01-20-2008 04:51 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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