Scott Kindley

December 11, 2006

6 Comments »

  1. Hi Scott. Do you also run a webfilter setup of any kind? I set up squid, squidguard, dansguardian, and iptables in order to have a more-or-less complete solution, with per-user transparent proxy (no browser settings to allow you to bypass the proxy). I had to set up postfix so that I would get e-mails if repeated blocked browsing attempts exceeded a threshold. Little bit of effort, but it really gives me that peace of mind. I haven’t implemented a login control like in your article, but I think that will be next, as a just-in-case. I did set the proxy to deny access between certain hours of the day and give a custom message, however. If you are also using a filtering solution, I would be very interested to read about it. Your article was quite informative!

    Thanks!

    Comment by symbolik — January 14, 2007 @ 5:21 am

  2. I do not use a proxy with my kids at home. I have setup a squid proxy in the past, but a proxy does not fit into my home lan needs at the moment.

    I do use IPTABLES though.

    Comment by Scott Kindley — January 14, 2007 @ 1:26 pm

  3. Fantastic! I knew there had to be a better way than all the others I have seen, and this is it. I thought it’d be part of the restricted time/days access settings.

    This works just as well and teaches me a bit about cron in the process. I didn’t know you could tell it to only do things on certain days of the week!

    I’ve got a local copy saved in case this disappears.

    Comment by cookieninja — November 26, 2007 @ 5:10 pm

  4. Last year when I was forced to restrict my childen’s time spent at computer I could not find any ideas, so I went on with my approach. Instead of using PAM, as it would allow them to use computer only at certain times, I wrote a small script which relies on wtmp file and accounts total time they spend with PC. Password part us gly, but I never thought I will share this :D
    sac package is needed.

    #!/bin/bash

    if [ $# -le 1 ] ; then
    echo “Usage: username quota ( “$OVER” ]] ; then
    if [[ `w $1 -s -h | wc -l` -gt 0 ]] ; then
    killall -u $1
    killall -s 9 -u $1
    sed -i “/^$1/d” /etc/passwd
    exit 0
    fi
    elif [ $VEL -le 10 ] ; then
    su – $1 -c “DISPLAY=:0 zenity –warning –title “Brīdinājums” –text \”Paliku\šas $VEL minūtes\!\”"
    else
    EXISTS=`grep -c $1 /etc/passwd`
    if [ $EXISTS -le 0 ] ; then
    case $1 in
    “fridrihs” )
    sed -i “/^gdm/afridrihs:x:1002:1001:Fridrihs,,,:/home/fridrihs:/bin/bash” /etc/passwd
    ;;
    “beta” )
    sed -i “/^gdm/abeta:x:1001:1001:Beatrise,,,:/home/beta:/bin/bash” /etc/passwd
    ;;
    esac
    fi
    fi

    Comment by shpokas — November 28, 2007 @ 3:46 am

  5. [...] Update: I found a method for getting the Parental Controls that I needed in Ubuntu. http://skindley.wordpress.com/2006/12/11/fedora-core-6-controlling-logins-by-time/ [...]

    Pingback by Ubuntu Parental Controls | The Bristow's dot COM — June 10, 2008 @ 12:12 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Blog at WordPress.com.