Networking Forums

Networking Forums > Computer Networking > Linux Networking > Deny users from accessing network

Reply
Thread Tools Display Modes

Deny users from accessing network

 
 
Vinayak Naik
Guest
Posts: n/a

 
      03-02-2006, 03:14 PM
Hi,

I would like to setup access control for a linux machine, let us say Red
Hat 9. I would like to block all the users, except root, from accessing
network. I looked at the /etc/hosts.deny file, but it allows machine level
control and not user level. Any solution would be helpful.

Thanks,

- Vinayak



 
Reply With Quote
 
 
 
 
Paul Black
Guest
Posts: n/a

 
      03-02-2006, 03:33 PM
Vinayak Naik wrote:
> Hi,
>
> I would like to setup access control for a linux machine, let us say Red
> Hat 9. I would like to block all the users, except root, from accessing
> network. I looked at the /etc/hosts.deny file, but it allows machine level
> control and not user level. Any solution would be helpful.


iptables ought to be able to help with what you want: have a look at the
owner match extension in the iptables man page.

Paul
 
Reply With Quote
 
Ken K
Guest
Posts: n/a

 
      03-03-2006, 12:24 PM
Vinayak Naik wrote:

> Hi,
>
> I would like to setup access control for a linux machine, let us say Red
> Hat 9. I would like to block all the users, except root, from accessing
> network. I looked at the /etc/hosts.deny file, but it allows machine level
> control and not user level. Any solution would be helpful.
>
> Thanks,
>
> - Vinayak


"I would like to block all the users, except root, from accessing network."
This statement does not make sense. Users, per se, do not access a network
- another machine accesses the network. So it is not *user based* controls
you can implement at a pure network level. You would likely need to
implement a proxy in order to do this (see squid).

However, you can block someone from using a *service* at the user level (ie:
apache, ssh, ftp).

Are you trying to block remote ssh login? If login control:

man sshd_config

look at AllowUsers and AllowGroups

You should also have a specific user that can log in then su - over to root
or use sudo for commands.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify users accessing shared network folders Berni Windows Networking 1 05-25-2009 01:25 PM
Prevent users from accessing local subnet while VPN'ed in? Trevor Windows Networking 2 03-16-2006 11:00 PM
Deny DHCP access Scott Windows Networking 1 02-14-2006 05:56 PM
Problem accessing home wireless network after accessing school wireless network with Odyssey client Tony Wireless Internet 1 08-24-2004 08:03 PM
Deny ssh but allow ftp Robert Linux Networking 8 09-21-2003 08:35 AM



1 2 3 4 5 6 7 8 9 10 11