Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-27-2010, 07:39 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
How to edit alllow.hosts - Debian

Hello All,

I am new to Linux, and am trying to setup a basic file server, but seem to be stuck with the editing of the allow.hosts file. I installed the latest Debian, and when I try to edit it, and then save, it says I dont have permissions.

As a sidenote, I dont mean to belittle linux or start a debate, I am behind the whole open source/free software thing, but every time I say to myself, "okay, time to give Linux another chance", I cant believe how difficult it is to do even the most simplist of tasks. No wonder MS is still on top. If only one could do it ALL from a GUI.

Anyway, I appologise for my little rant, I am determined to learn linux even though its frustrating at times.

Any help would be appreciated.

Brian aka BigRussian63
Old 12-27-2010, 07:49 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
You have to edit the file with root privileges. You can either do this from a command line (type su and enter the root password to become root, then edit the file with nano allow.hosts - assuming allow.hosts is the correct name, nano is a console text editor, you could use gedit or kate instead) or sometimes there's a little gui program that will let you "run as root" that will prompt for your root password.

What desktop are you using (KDE 4, KDE 3, gnome, XFCE, etc)? That would help us find the gui tool for you.

Last edited by pljvaldez; 12-27-2010 at 07:51 PM.
1 members found this post helpful.
Old 12-27-2010, 09:16 PM   #3
LQ Newbie
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the tips.... I will let you know.
Old 12-27-2010, 10:17 PM   #4
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 14,175
Blog Entries: 24

Rep: Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836
The reason Windows is on top is because most computers come from the store with Windows installed. If they came from the store with Solaris installed, Solaris would be on top.

Linux is not Windows.

Expecting it to act like Windows is asking for disappointment. Remember, also, that most persons, including me, have spent years learning how to use Windows so that Windows seemed to be "computing," when all it was was Windows.

Linux is not hard (actually, having been very very good with Windows, I find Linux easier than Windows now that I am pretty good at it), but it is different.

Here are some good resources for learning Linux.

A good basic intro to Linux. It's oriented to Ubuntu, but the information is solid. I wish I had known about it when I started with Linux five+ years ago. (I have found about dot com to be a good reference site for a lot of topics--their CSS tutorials are excellent.)

The Slackbook. It's Slackware-oriented, so it's very good on basics, such as permissions, file structure, and the like.

Garrels's Introduction to Linux. Detailed and very thorough.

Last edited by frankbell; 12-27-2010 at 10:19 PM. Reason: clarity, spelling
Old 12-27-2010, 10:56 PM   #5
LQ Newbie
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I hear what you are saying, but the fact remains that to do even simple tasks one requires command line knowledge, it's not intuitive as it could be. Anyway, I dont wanna turn this into a flame war. I really appreciate your help. I will endevor this time to learn. :-)
Old 12-27-2010, 11:05 PM   #6
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860
No, we had enough of this flamewars. But as you will soon learn, when getting better in setting up your server, that it is most of the time faster and easier to use the commandline instead of the GUI.
Just my


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
How to edit the HOSTS file? dmu Linux - Networking 3 01-29-2006 10:51 AM
edit /etc/hosts ninapratt Linux - Newbie 15 09-19-2005 02:49 PM
Is there an easier way to edit /etc/hosts? n3rds3x Linux - General 4 05-05-2005 06:42 AM
Cannot edit hosts file k3nn0n Fedora 3 05-26-2004 12:00 PM
error on start up---edit /etc/hosts emacin777 Linux - Networking 1 09-03-2003 01:10 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration