LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-27-2010, 06:39 PM   #1
BigRussian63
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.

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

Rep: Reputation: 281Reputation: 281Reputation: 281
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 06:51 PM.
 
1 members found this post helpful.
Old 12-27-2010, 08:16 PM   #3
BigRussian63
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, 09:17 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,349
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
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 09:19 PM. Reason: clarity, spelling
 
Old 12-27-2010, 09:56 PM   #5
BigRussian63
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, 10:05 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
 
  


Reply



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

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

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