LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-03-2003, 02:27 AM   #1
magnum818
LQ Newbie
 
Registered: Sep 2003
Location: Northridge-California-USA
Distribution: Redhat
Posts: 10

Rep: Reputation: 0
Blocking an account from accessing the internet.


Is there an effective way of blocking a particular user account from using the internet/network/network interfaces on a Linux machine?
 
Old 12-03-2003, 02:46 AM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
With "iptables" you should be able to do it, maybe adding a rule like
Code:
iptables -A OUTPUT -p all -m --uid-owner UID -j DROP
(where "UID" is the one of the user you want to block)
althought there must be easier ways to do it. (without iptables)
Regards

Last edited by Y0jiMb0; 12-03-2003 at 01:28 PM.
 
Old 12-03-2003, 02:50 AM   #3
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
... you also could use "--gid-owner", instead of "--uid-owner"; then, you could use it to block all but the users in the network group from getting out onto the Internet.
Regards

Last edited by Y0jiMb0; 12-03-2003 at 01:29 PM.
 
  


Reply


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
accessing files in password protected account on another mnt Cinematography Linux - General 10 05-12-2005 03:52 PM
firewall blocking internet k4zau Linux - Networking 1 09-24-2004 03:18 PM
Accessing from Windoze: How to activate guest account? Seppel Linux - Networking 2 09-17-2003 06:14 AM
How to disable an account from remote accessing hanxuerui Linux - Security 11 07-17-2003 11:09 AM
Trouble accessing mounted filesystem from user account. DarkXtar Slackware 6 04-29-2003 11:27 PM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration