LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-11-2008, 07:09 PM   #1
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Desktop- Debian Lenny, Laptops- Ubuntu 8.10, Debian Lenny UMPC- Ubuntu 8.10
Posts: 1,296

Rep: Reputation: 55
Restricting 1 User's internet use


I'm thinking there has to be an easy way to do this, and I'm just missing this...

I have 1 PC, 3 Accounts. I want 2 of the accounts to have internet access, and the other to not be able to access the internet. I've unchecked every single box under "user privleges" for that user in User/Groups, and that user can still get on the Internet..

Suggestions please..

IGF
 
Old 09-11-2008, 07:49 PM   #2
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Desktop- Debian Lenny, Laptops- Ubuntu 8.10, Debian Lenny UMPC- Ubuntu 8.10
Posts: 1,296

Original Poster
Rep: Reputation: 55
Hmm, well there should be a more foolproof way to do this, but fortunately, the user I have to restrict won't have a clue. I disabled networking via nm-applet, then went to sessions, and for that user, set nm-applet to not load at startup.... Before, nm-applet would still load, and she could have just clicked "Enable" or connect to internet, or whatever, and gotten online. Now if she figures out to start nm-applet.. I'll have to figure something else out...

Seems like there would be a group for http access, but if there is, I completely missed it.

Still open to better suggestions if anyone has it, but for now, I've resolved it.

IGF
 
Old 09-11-2008, 09:14 PM   #3
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 14,972

Rep: Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528
Most access controls are for controlling input bound access, such as access to a service, or when you can login, or who can use samba or ssh.

There is an iptables module that can match the owner of a process. This would allow you to block off ports or an interface in the OUTPUT chain for a particular user.

You may also be able to add a policykit rule that matches a particular user. However, I don't know what action would match. ( Note to self: Find a good book on policy kit ).

Take a peek at the iptables info file:
Code:
   owner
       This module attempts to match various  characteristics  of  the  packet
       creator, for locally-generated packets.  It is only valid in the OUTPUT
       chain, and even this some packets (such as  ICMP  ping  responses)  may
       have no owner, and hence never match.

       --uid-owner userid
              Matches  if  the  packet was created by a process with the given
              effective user id.

       --gid-owner groupid
              Matches if the packet was created by a process  with  the  given
              effective group id.

       --pid-owner processid
              Matches  if  the  packet was created by a process with the given
              process id.

       --sid-owner sessionid
              Matches if the packet was created by a process in the given ses-
              sion group.

       --cmd-owner name
              Matches  if  the  packet was created by a process with the given
              command name.  (this option is present only if iptables was com-
I believe that a previous post on this site had an example where if a certain user makes a dns query, the destination address would be changed to an opendns server. This would allow enforcing family controls, for example.

---

I think that the http owner & group is a system owner/group that the apache web server uses instead of running as root. I don't think you want to add real users to the http group.

Last edited by jschiwal; 09-11-2008 at 09:36 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
restricting internet access with squid... mia_tech Linux - Newbie 3 01-02-2008 04:19 PM
Restricting access to Internet cooljai Linux - Networking 1 05-16-2007 06:35 AM
restricting internet access bobbens Linux - Networking 2 02-08-2005 08:29 AM
restricting a user's access to a single directory cliffyman Linux - Security 3 08-22-2002 01:22 PM
user's access to internet redhax8 Linux - General 4 01-30-2002 07:37 PM


All times are GMT -5. The time now is 11:07 AM.

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
Open Source Consulting | Domain Registration