/etc/hosts.deny & hosts.allow

/etc/hosts.deny & hosts.allow

Post by Villy Kru » Sat, 17 Mar 2001 02:01:46




>Hi,

>Can somebody tell me why I can't write to /etc/hosts.deny or
>/etc/hosts.allow?  As root I get readonly when I open them with vi and
>can't force the write using :w!  The permissions look right :

>-rw-r--r--    1 root     root          161 Jul 21  2000 hosts.allow
>-rw-r--r--    1 root     root          347 Jul 21  2000 hosts.deny

Try lsattr and get inspired.

Villy

 
 
 

/etc/hosts.deny & hosts.allow

Post by Peadar O'Gaor » Sat, 17 Mar 2001 01:21:36


Hi,

Can somebody tell me why I can't write to /etc/hosts.deny or
/etc/hosts.allow?  As root I get readonly when I open them with vi and
can't force the write using :w!  The permissions look right :

-rw-r--r--    1 root     root          161 Jul 21  2000 hosts.allow
-rw-r--r--    1 root     root          347 Jul 21  2000 hosts.deny

If I try to remove either one I get :

rm -f hosts.deny
rm: cannot unlink `hosts.deny': Operation not permitted

It also won't allow me to change the permissions, mv them.......

I can't find any links to it using symlinks.  I'm stumped.  Do I need to
stop all processes that use these files, then change them and then
restart the processes?  If so what processes use them apart from the
nfs-related ones (rpc.statd and so on)?

All this on a RedHat 6.2 installation running on a remote machine which
I ssh into as a regular user and then su to root.

Thanks,

Peadar

 
 
 

1. /etc/hosts.deny & /etc/hosts.allow ??


Install tcp-wrappers <ftp://ftp.win.tue.nl/pub/security/>

--
________________________________________________________________________

Univ. of California at Berkeley         http://soar.Berkeley.EDU/~alanc/

2. Netscape Plug-In To Display MS-Word (DOC) Files?

3. /etc/hosts.deny and /etc/hosts.allow

4. NCSA httpd compilation...

5. hosts.deny && hosts.allow

6. Linux like a WAN router

7. Upgrade gcc 2.7.0 to 2.7.2.1 and ld.so.1.9.5

8. If host.allow & host.deny don't exist...

9. hosts.allow & hosts.deny not enough?

10. hosts.allow & hosts.deny issues

11. hosts.allow & hosts.deny

12. /etc/hosts.deny and allow