LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-24-2013, 11:51 AM   #1
jbis2k
LQ Newbie
 
Registered: Feb 2013
Location: Tacoma, WA
Distribution: Ubuntu 10.04
Posts: 1

Rep: Reputation: Disabled
Question Access to /etc/network/interfaces denied


Disregard. Thanks to all who have looked at this. I found the answer in nano; not sudo. I am editing the file now.

My screen shows me@ubuntu-server:$

I typed the following after the $ sign:

/etc/network/interfaces

I received:

-bash /etc/network/interfaces: Permission Denied

When I installed the server I was prompted to input a username and password. I did. Am I--the user--not the administrator? Do I need to sign in as root?

I tried also entering: sudo /etc/network/interfaces to no avail.

Last edited by jbis2k; 02-24-2013 at 12:14 PM. Reason: Problem solved for now.
 
Old 02-24-2013, 01:10 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
//removing from zero posts.
 
Old 02-24-2013, 04:27 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by jbis2k View Post
Disregard. Thanks to all who have looked at this. I found the answer in nano; not sudo. I am editing the file now.
You may not be able to save your file changes. Try sudo nano .... if that's a problem.

Also, if you're running without a GUI, consider doing an apt-get install mc. Then the sudo mc will give you a nice two pane file manager, and a reasonably wysiwug editor (mcedit) that works from the command line.
 
Old 02-24-2013, 08:21 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,666
Blog Entries: 28

Rep: Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248
Quote:
/etc/network/interfaces
That is not a command. It is simply a path statement.

You need a command preceding it, such as vi (open with the vi editor), less (open with less), cat (concatenate, or display the contents of), or the like.

try

Code:
cat /etc/network/interfaces
for testing purposes.
 
  


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
can't open etc/network/interfaces : permission denied or something? arjukjan84 Linux - Newbie 11 11-13-2014 07:10 PM
Access denied when login from outside my network basheer.rehan Linux - Newbie 4 02-24-2011 11:17 AM
Not able to access network printer access denied. arvind.s Linux - Networking 1 08-04-2009 07:05 PM
Samba Share = Network Access is Denied surban99 Linux - Software 2 04-10-2009 02:54 PM
Several network interfaces: preventing access to one interface Pinguix Linux - Networking 1 11-30-2006 09:57 AM

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

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