LinuxQuestions.org
Visit Jeremy's Blog.
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 08-16-2009, 10:51 PM   #1
bowbalitic
Member
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32,Gentoo, archlinux
Posts: 62

Rep: Reputation: 15
Permission denied as root


I just finished installing Ubuntu server 9.4 for my home network and I've already hit a roadblock.

I'm fairly new to Linux, but I thought that this would be a good learning tool. So please bare with my stupidity.

I've been following this how to http://www.howtoforge.com/ubuntu-home-fileserver and all has gone pretty well until I tried to set the ip to a static ip (Top of page 3 on the how to) I am trying to locate the directory /etc/network/interfaces when I try to access it it tells me permission denied and when I try to CD to it it says it "Not a directory".

Also, when I PWD it says I'm in /root and when I ls and li (installed limo) nothing shows up. When I ls/li /etc a list show up including "networks" but when I li/ls /etc/networks nothing shows up.

I know that this might be a pretty far above my head, but I'm just doing this to learn. I don't need it to work any time soon.

As always thanks for your help.

I couldn't find any, but if there is a thread that solves this problem could you please post a link an delete this one.
 
Old 08-16-2009, 10:56 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
ls/li /etc
This should be "ls -l /etc". If you want to see the inodes of files then "ls -li /etc.

also /etc/network/interfaces is a file, not a directory.

Ubuntu is configured with the root user disabled. That could account for the permission denied. Use "sudo" to run commands as root.

Last edited by jschiwal; 08-16-2009 at 10:58 PM.
 
Old 08-16-2009, 11:36 PM   #3
bowbalitic
Member
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32,Gentoo, archlinux
Posts: 62

Original Poster
Rep: Reputation: 15
I was logged in as root. The first thing I did was sudo passwd root and set password, then I logged in as root.So how would I change items in the file? I need to give the server a static ip. The how to is saying I need to edit /etc/networks/interfaces, these are the cmds given.

"# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1"
 
Old 08-16-2009, 11:41 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Just use one of the editors you've installed with the distribution.

emacs /etc/network/interfaces
vi /etc/network/interfaces
nano /etc/network/interfaces

or any GUI-based text editors, like

gedit /etc/network/interfaces

would do.
 
Old 08-16-2009, 11:55 PM   #5
bowbalitic
Member
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32,Gentoo, archlinux
Posts: 62

Original Poster
Rep: Reputation: 15
Ok, I'll try, but ubuntu server doesn't have gui right? Any way, thanks for your help I'll see how it works out.
 
Old 08-21-2009, 03:55 PM   #6
bowbalitic
Member
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32,Gentoo, archlinux
Posts: 62

Original Poster
Rep: Reputation: 15
Thank you for your help, I understand what you mean now.
 
  


Reply

Tags
denied, permission



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 even as root lonecrow Linux - Software 4 08-23-2006 08:29 PM
su root permission denied stardotstar Linux - Software 6 08-20-2006 08:24 PM
permission denied when root? TaNeK Linux - Software 8 02-01-2005 12:39 PM
Permission denied as root Cynric Linux - General 4 08-15-2004 11:47 AM
su root permission denied exodist Linux - Software 4 07-23-2004 03:34 PM

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

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