LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-04-2006, 03:31 AM   #1
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
Kde, Firefox, and Sudo


Hello!

I want to limit internet for only certain users and also want to be able to load firefox only with a password. The password can be the same as their user account. I just don't want someone else coming along using the internet if the original user didn't log out (it's for a family with young children).

For limiting the users, I fixed the nat tables to reflect only the users I want. But for putting a password on firefox, I don't know how to do that. I can kdesu, but then they would be running as another user altogether. I saw there was a kdesudo, but that program didn't work well, probably because of permission problems. Does anyone have any solutions for putting a password on firefox?

I could set up a squid proxy, but that's a bit of an overkill for a personal desktop.

Thanks,
Murdock

Last edited by Murdock1979; 10-04-2006 at 03:33 AM.
 
Old 10-04-2006, 04:17 AM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
i never try this, but you can use iptable, it support user-base, suitable for your environment.
 
Old 10-04-2006, 04:38 AM   #3
Turmoil
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Rep: Reputation: 0
I don't really think squid is overkill at all, imo its perfect for this application.

You could use squid & dansguardian together as they are an excellent combination for web filtering, so you can set squid to authenticate off the local passwords.

This way not only do you restrict who can use the internet, you can also protect the kids from objectionable content, and let the parents accounts bypass the filtering in DG.
 
Old 10-04-2006, 04:39 AM   #4
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Thanks!

Kstan:
However, I need to set up a password for users to run the internet, even after they logged in. Is there a way to password protect an executable?

Turmoil:
Quote:
I don't really think squid is overkill at all, imo its perfect for this application.

You could use squid & dansguardian together as they are an excellent combination for web filtering, so you can set squid to authenticate off the local passwords.

This way not only do you restrict who can use the internet, you can also protect the kids from objectionable content, and let the parents accounts bypass the filtering in DG.
Do you think Squid would be too heavy for a standard desktop??

Murdock

Last edited by Murdock1979; 10-04-2006 at 04:41 AM.
 
Old 10-04-2006, 10:47 AM   #5
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
u can use any method, both have their advantages. If you want to use iptables the command is something like this:-

#iptables -A OUTPUT -m owner --uid-owner username-to-block -j DROP
or
#iptables -A OUTPUT -m owner --gid-owner groupname-to-block -j DROP

You can change the username-to-block or groupname-to-block to suit your environment. 'owner' is module name, don't change it.
I never try this but from my book state this command, please feed back if it work well.

Regards,
Ks

Last edited by kstan; 10-04-2006 at 10:49 AM.
 
Old 10-04-2006, 11:38 AM   #6
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Kstan,

Thanks!

Yes, I did try it and it works great. Actually, the main use I found for it was when I use Dansguardian. I need to send user packets to Dansguardian, but I must let Dansguardian packets go out through the internet. Hence, I need to use different usernames.

However, in my case, I need to password protect firefox, so when someone is logged on, someone else can't just come along a start using the internet (because the original user did not log out).

Murdock
 
Old 10-04-2006, 07:36 PM   #7
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
IC IC. Congratulation.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Firefox in KDE nerzack Linux - Software 1 06-12-2006 09:04 PM
Emailing from Firefox in KDE dARkHunTEr Linux - Software 1 12-04-2004 08:26 AM
firefox + kde alaios Linux - Software 11 11-09-2004 10:27 PM
Firefox KDE issue camberiu Linux - Newbie 4 08-05-2004 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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