LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Access to /etc/network/interfaces denied (https://www.linuxquestions.org/questions/linux-newbie-8/access-to-etc-network-interfaces-denied-4175451508/)

jbis2k 02-24-2013 10:51 AM

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.

acid_kewpie 02-24-2013 12:10 PM

//removing from zero posts.

PTrenholme 02-24-2013 03:27 PM

Quote:

Originally Posted by jbis2k (Post 4898726)
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.

frankbell 02-24-2013 07:21 PM

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.


All times are GMT -5. The time now is 10:09 AM.