Slackware :: Edit Hosts.allow More Tightly With NFS?
Jul 7, 2011
I have Slackware64 installed on a LAN gateway/server. The box is running an NFS/NIS server for roaming profiles. I wonder how I can edit hosts.allow more tightly with NFS. I googled around a bit and decided on the following configuration:
I 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.
This really has me baffled! I'm running Apache 2.2 on Windows Server 2003 (I know, my first blunder). I can edit existing virtual hosts without a problem, for example, I can change this existing vhost to point to a different document root and it works fine:
But the moment I try to add a new virtual host, it doesn't get recognized! When I try to browse to it in a browser, I get a "Server not found: Firefox can't find the server at newsubdomain.mellemallc.net."
I run a local apache server, that has some virtual hosts running. Now I want to be able to locally connect to these virtual hosts, but when I try this, it puts www and .com behind the url and says it can't find it. On Windows I know the equivalent, editing the hosts file. Is there something similar in linux?
1) I'm not sure which IP address to use when I list my machine name in /etc/hosts, particularly after reading:
Quote:
By the w]ay, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1 # should NEVER be named with the name of the machine. It causes problems # for some (stupid) programs, irc and reputedly talk. :^)
Here's what I have now: Code: root@eagleswing:~# hostname eagleswing root@eagleswing:~# cat /etc/HOSTNAME eagleswing.5binc
[Code]...
I'm not certain how to include my router in /etc/hosts so I can use it to link my PCs as stated above. I was thinking of writing (see above link):
192.168.2.1 localbelkin Will this work & is it proper?
3) Do I need to make use of any other IP addresses at this link? What are the WAN IP & Default Gateway addresses used for? I am going to be serving documents & running scripts on Apache.
I am trying to configure Apache to handle virtual hosts. For this I un-commented the line in httpd.conf that say
Include /etc/httpd/extra/httpd-vhosts.conf Then I included the following in httpd-vhosts.conf: <VirtualHost *:80> <Directory /var/www/git.localhost/gitorious/public> Options FollowSymLinks AllowOverride None Order allow, deny Allow from All .....
I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?
Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?
PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.
Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?
If you know Slackware you know Linux. If you know Red Hat you only know Red Hat".Now I made a decision to install Slackware near Ubuntu and Xp.I've installed Slackware with LILO.Well LILO didn't add Ubuntu.So I needed to install from a LiveCD GRUB.Now I've got another problem:GRUB didn't add Slackware.I made a research and realised that I must to edit /boot/grub/menu.lst. This is my hard disk(XP:sda1,sda5;Ubuntu:sda7,sda8;Slackware: /->sda9 /home->sda10): [URL] This is general code for adding an OS to GRUB:
title Slackware root (hd0,x) kernel /<vmlinuz_filename> ro root=/dev/hda<partition> initrd /<initrd_filename>
[code]....
How can I find initrd for Slackware and I'd like to know how I must to write correct code to add Slackware to GRUB?
I've read that you can fix lilo after a bad edit by booting from install cd1 and entering: Code:boot: bare.i root=/dev/hda X noinitrd ro at the boot prompt. Can someone confirm this or suggest a better way? I'm using slackware 13.
In the Firefox source directory is a file called 'configure.in'. I simply want to make a small edit to this file to carry out a bit of experimentation. However, whether I use KWrite, KEdit or Kate, I run into the same problem that after I have saved the file, the build always crashes out like this:
My brother is thinking of installing Slackware64 13.1 on his laptop. He was wondering though how to configure his wireless card. How would he do this? He is using an Intel wireless card, but I am unsure of the exact model. Another question is would Wicd do this automatically or do you still have to use either iwconfig or wpa_supplicant and edit the corresponding config files?
are there any light-weight program in slackware to edit a .AI files.. i only need a software that can edit(mainly slice) an image in an adobe illustrator file.
All clients on the LAN, have to have their /etc/hosts file edited for my server to resolve their hostnames/LAN ip addresses. Both Windows/Mac/Linux. That shouldn't be necessary as all other stanzas are correct. If the hosts file is not ammended my maillog shows connect from unknown rip="my_external_address" when in fact it should say connect from "host" rip=192.168.0.20 Not to sure if it is an iptables issue as I have nothing for this configuration. /etc/hosts file on the server has all required hostnames and ip addresses
I'm running xbmc on slackware64-13.1 and it's running great. However a python addon script is giving me trouble. The script contains some utf-8 characters, and by default I get an error because coding isn't declared in the script. I've added
Code: # -*- coding: utf-8 -*- to the scripts and they will work fine, but they are updated very frequently. I've tried messing around with turning on unicode console and such but I'm a bit in the dark on this. Is there a way I can get slack to handle those scripts without having to edit them every time I update?
Is it possible to edit the "Places" menu the way one can edit the "Applications" and "System" menus on gnome?
Right-clicking on the bar gives only Applications and System as editable menus. I would like to remove some items from the places menu and add others of my own liking
What I am trying to do is edit the link target to force ip=xxxx.xxx.xxx string at end. I have a software program which access 4 different servers running the software but with different configs. In xp I can copy links and modify as above to correctly force the program to the various servers.
I have read the various how tos on hard vs sym links which I get. Playing around with hardlinks and sysmlinks (the examples I find) does not seem to be what I need. Feel like this is pretty basic stuff but I am a bit stumped.
I'm doing a how-to to setup my debian server. It tells me to edit /etc/hosts to look like this (with different IPs and hostnames of course)
Code: 127.0.0.1 localhost.localdomain localhost 192.168.0.100 server1.example.com server1 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
I'm curious about that second line. I know it'll be my actual server ip, but what does it specify? what is the 'server1' at the end of the line specifying? I *think* that 'server1' would be part of my bash prompt when i login, but am not sure. Is it used for anything else?
I haven't needed static alias's for at least 3 months, but I'm assuming an update messed something up.
Upon every restart, my /etc/hosts file keeps getting overwritten back to the defaults; erasing all the hostname alias's I added. What would be doing this? Is there a new way that I'm supposed to define IP aliases now?
Not sure what iis going on, I can ping some hosts on the internet but not others see below (adobe is not the only example) Works OK from another host on the same network with same GW and DNS iptables is turned off
[root@havoc init.d]# ping www.arrl.org PING www.arrl.org (184.106.62.248) 56(84) bytes of data. 64 bytes from www.arrl.org (184.106.62.248): icmp_req=1 ttl=55 time=94.1 ms 64 bytes from www.arrl.org (184.106.62.248): icmp_req=2 ttl=55 time=93.0 ms 64 bytes from www.arrl.org (184.106.62.248): icmp_req=3 ttl=55 time=99.4 ms 64 bytes from www.arrl.org (184.106.62.248): icmp_req=4 ttl=55 time=96.8 ms
I am doing a Linux installation. I installed the system fine and am trying to change the vi /etc/hosts file. I have edited the file but am not sure how to save it. I have --INSERT-- showing at the bottom.
I share a computer with my brother. It runs Lucid Lynx. I want to add an entry to the hosts file that will affect him negatively. Is there a way I can add the entry, without it affecting him, like, is there a user-specific hosts file?
Is there anyway that I can prevent access to the hosts file, or any file for that matter, for a time that I can specify, so that within that time no one will be able to open and edit the said file?
I have a problem reaching some hosts on the Internet, namely newegg.com and djangoproject.com. On the same machine and network connection using Windows 7 the host names resolve properly and I can connect to them. The host names are resolving in Ubuntu, but I cannot connect to them.