LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   permission denied (https://www.linuxquestions.org/questions/linux-server-73/permission-denied-922285/)

gregoryp 01-05-2012 05:08 PM

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

MS3FGX 01-05-2012 05:24 PM

What is the exact command you are using to try and edit the file? What is the exact error message you get?

gregoryp 01-05-2012 05:27 PM

the exact command I am using is /etc/network/interfaces and the result is bash:/etc/network/interfaces: permission denied

chrism01 01-05-2012 07:24 PM

Try
Code:

su -
to ensure you get root's env setup, then
Code:

ls -l /etc/network
ls -l /etc/network/interfaces


MS3FGX 01-05-2012 09:04 PM

Quote:

Originally Posted by gregoryp (Post 4567377)
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.


All times are GMT -5. The time now is 01:35 PM.