LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 08-16-2009, 11:51 PM   #1
bowbalitic
LQ Newbie
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32, Ubuntu, Ultimate Edition, Ubuntu Server
Posts: 29
Thanked: 0
Permission denied as root


[Log in to get rid of this advertisement]
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.
bowbalitic is offline  
Tag This Post ,
Reply With Quote
Old 08-16-2009, 11:56 PM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 12,877
Thanked: 232
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 11:58 PM..
jschiwal is offline     Reply With Quote
Old 08-17-2009, 12:36 AM   #3
bowbalitic
LQ Newbie
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32, Ubuntu, Ultimate Edition, Ubuntu Server
Posts: 29
Thanked: 0

Original Poster
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"
bowbalitic is offline     Reply With Quote
Old 08-17-2009, 12:41 AM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896
Thanked: 52
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.
Uncle_Theodore is offline     Reply With Quote
Old 08-17-2009, 12:55 AM   #5
bowbalitic
LQ Newbie
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32, Ubuntu, Ultimate Edition, Ubuntu Server
Posts: 29
Thanked: 0

Original Poster
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.
bowbalitic is offline     Reply With Quote
Old 08-21-2009, 04:55 PM   #6
bowbalitic
LQ Newbie
 
Registered: Feb 2008
Location: Wadsworth, Ohio
Distribution: Windows xp pro 64 and 32, Ubuntu, Ultimate Edition, Ubuntu Server
Posts: 29
Thanked: 0

Original Poster
Thank you for your help, I understand what you mean now.
windows_xp_2003 bowbalitic is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration