LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-18-2015, 02:40 PM   #1
DaveG307
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Rep: Reputation: Disabled
Debian 8 - Root user gets permission denied


I have installed Debian 8 and logged in as root. All I want to do is set a static IP, but every time I try, I get permssion denied!

The command I am using to get started is /etc/network/interfaces
The response I get is:
-bash: /etc/network/interfaces: Permission Denied

I thought that the root user had permission to do anything!

Please help!!!
 
Old 11-18-2015, 02:47 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Welcome to LQ!

See https://debian-handbook.info/browse/jessie

Last edited by Habitual; 11-18-2015 at 02:48 PM.
 
Old 11-18-2015, 03:07 PM   #3
DaveG307
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the reply

I will read through the guide when I have more time, but I have been asked to set up this server at short notice by my company, and need to get this working asap. Am I missing something really obvious??
 
Old 11-18-2015, 03:08 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
/etc/network/interfaces

This is a text file, but you are trying to execute it. Use an editor to edit it instead.
 
1 members found this post helpful.
Old 11-18-2015, 03:25 PM   #5
DaveG307
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
All I'm trying to do is to set a static IP. If this isn't the right command, what command do I use?
 
Old 11-18-2015, 03:33 PM   #6
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Quote:
Originally Posted by DaveG307 View Post
All I'm trying to do is to set a static IP. If this isn't the right command, what command do I use?
The post above yours answers your question. Much in Linux is configured by editing/saving text files:

Quote:
Originally Posted by Emerson View Post
/etc/network/interfaces

This is a text file, but you are trying to execute it. Use an editor to edit it instead.

Last edited by NGIB; 11-18-2015 at 03:34 PM.
 
Old 11-18-2015, 03:36 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by DaveG307 View Post
Thanks for the reply

I will read through the guide when I have more time, but I have been asked to set up this server at short notice by my company, and need to get this working asap. Am I missing something really obvious??
Yes, you're missing something, you're not qualified to do this -- hire somebody who knows what they're doing before you make an expensive mistake.
 
Old 11-18-2015, 04:16 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
/etc/network/interfaces is a plain-text config file. You can't execute a config file. You're getting a permission denied error because it's not an executable file, and therefore can't be executed.

You need to OPEN it with something that can manipulate text files, like any text editor.

Last edited by suicidaleggroll; 11-18-2015 at 04:18 PM.
 
Old 11-18-2015, 04:53 PM   #9
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Gimme, gimme, gimme...
https://wiki.debian.org/NetworkConfiguration

Ironically, it says:
Quote:
Reader Prerequisites: To get the most from this article, understand the following concepts before reading:
basic unix command line tools, text editors, DNS, TCP/IP, DHCP, netmask, gateway

Last edited by Habitual; 11-18-2015 at 04:57 PM.
 
Old 11-19-2015, 04:08 AM   #10
DaveG307
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Angry

Thank you for your replies. I have subsequently used 'nano' to achieve what I needed to.
Can I please point out that this is a newbie forum. I quite freely admit that I do not know what I am doing....yet.
I have come from using Cisco IOS and Windows command line environments (Shock! Horror! He said 'Windows' in a Linux forum!), and so am used to issuing commands, not editing text files, to configure the system.

I am not completely incompetent and the comment by '273' below is completely unnecessary and uncalled for. Please show some patience for us newbies!!
 
Old 11-19-2015, 04:16 AM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by DaveG307 View Post
I am not completely incompetent and the comment by '273' below is completely unnecessary and uncalled for. Please show some patience for us newbies!!
If you were a newbie asking for help with a home system or starting out on a course then, of course, I would show patience. However, somebody is paying you to do a job that you are obviously not qualified for and that is frightening. Hopefully you don't work for any company I have dealings with.
 
Old 11-20-2015, 10:13 AM   #12
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by 273 View Post
If you were a newbie asking for help with a home system or starting out on a course then, of course, I would show patience. However, somebody is paying you to do a job that you are obviously not qualified for and that is frightening. Hopefully you don't work for any company I have dealings with.
That isn't fair.

This could just as easily be an "on-the-job" training event by small companies. Frequently they will take some unit, give it to a worker bee and say "make it go".

So first, the worker bee has to learn what the unit can do...
 
Old 11-20-2015, 12:17 PM   #13
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by jpollard View Post
That isn't fair.

This could just as easily be an "on-the-job" training event by small companies. Frequently they will take some unit, give it to a worker bee and say "make it go".

So first, the worker bee has to learn what the unit can do...
That's fair enough but I see no evidence for that. The refusal to read the Debian documentation seems a bit off to me also.
I'd love to be a rocket scientist but common sense prevents me taking a job as one then seeking help on a forum.
 
Old 11-20-2015, 12:31 PM   #14
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by 273 View Post
That's fair enough but I see no evidence for that. The refusal to read the Debian documentation seems a bit off to me also.
I'd love to be a rocket scientist but common sense prevents me taking a job as one then seeking help on a forum.
It happens a lot until you get familar with the documentation. Unfortunately, that has a tendency to be a bit sparse, and scattered. Finding it also means having to search for definition of terms (specially since MS has a tendency to create their own definitions for standard terms... and that makes it HARDER to understand the standard definitions).

I learned by being given the 1973 paper on UNIX. It made a LOT of sense, and explained the heart of UNIX. Of course, I also learned it before MS did so much damage.

Things have gotten a LOT more complex now, and more hidden as the GUI takes over (granted, it is MUCH harder to document a GUI... but that doesn't excuse the lack).
 
  


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
Permission denied for root user shujja Linux - Newbie 9 10-28-2014 08:32 PM
permission denied on new partition to non-root user mushtaq Linux - Newbie 3 04-11-2011 01:38 PM
permission denied as root user tuluks SUSE / openSUSE 6 12-18-2006 01:53 AM
Permission denied existing directory root/user BDHamp Linux - General 5 04-10-2006 09:41 AM
whatever a non-root user does, he gets 'permission denied'. boazg Linux - Software 2 08-05-2005 08:17 AM

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

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

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