G'day Shaun,

Here's a good way that removes almost any required thought on behalf of the user - if they're smart enough to log in they can use this method.

* Create a user called internet with an appropriate password.
* Write a script that turns ppp on or off controlled by a menu (as well as a quit or log out function).
* Place the script in an appropriate place eg. /usr/bin/internet.sh
* Make sure it's owned by root and has the permissions rwxr-xr-x
* In /home/internet create a .xsession file which has the line (and only the line): /usr/bin/gnome-terminal

Now, all they have to do is log into the box via whatever method (xdm/gdm, console, ssh, telnet, etc) and they'll be able to control the internet connection easily.

**NB: Make sure the machine is firewalled so that someone externally can't log in as this user.

An example script of what I've set up for a similar scenario - only for administration - follows:

===BEGIN===
#
# File: admin.sh
# Author: Michael Kraus - 0414 712 705
# Date: 5th March, 2002
# Usage: Use as script, or as shell replacement
# Purpose: Backup and admin purposes
#
CHOICE=""
while [ "$CHOICE" != "3" ]
do
        echo ""
        echo "1. Backup data"
        echo "2. Change users password"
        echo "3. Quit / Logout"
        echo ""
        echo -n "Enter choice: "
        read CHOICE

        if [ "$CHOICE" = "1" ]
        then
                mt rewind
                tar cvpf /dev/st0 --label="Backup on `date +%d%B%Y`" /home/share
                mt rewoffl

        elif [ "$CHOICE" = "2" ]
        then
                echo ""
                echo "Current users:"
                echo "--------------"
                cat /etc/samba/smbpasswd | cut -f1 -d: | grep -v "#"
                echo ""
                echo -n "Enter username: "
                read USERNAME
                echo -n "Admin "
                su -c "/usr/bin/smbpasswd $USERNAME" root
        fi
done
===END===


Warmest regards

Mike
---
Michael S. E. Kraus
Network Administrator
Capital Holdings Group (NSW) Pty Ltd
p: (02) 9955 8000



Shaun Oliver <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

04/07/2003 02:46 AM

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        [SLUG] linux gateway



hi,
I want to run linux as a gateway computer between my lan and the
internet.
I am well aware of the tools needed to acomplish this task as I have
been using linux for the last 2 years or so.
my dilemmer is this.
I am the only one who knows and understands linux in my household, and
my partner prefers to use windows.
I am searching for a way to enable her to be able to point and click and
start or stop pppd and get the usual connection statistics she has
become acustom to.
currently, I run debian3.0 kernel 2.4.20 and speakup-1.5.
I must point out at this point in time that I am a blind user of
GNU/Linux and prefer to use it as my os of choice due to the nature of
the free software movement.
any help on this matter would be greatly appreciated.
thanks in advance.

--
Shaun Oliver
"Becareful of the toes u step on today, they maybe connected to the ass you have to kiss tomorrow!"

EMAIL: [EMAIL PROTECTED]
ICQ: 76958435
YAHOO: blindman01_2000
MSN: [EMAIL PROTECTED]
AIM: captain nemo 200
IRC: irc.awesomechat.net:6666
IRCNICK: blindman
CHANNELS: #awesomeradio #mircpopup-magic #linux #help #ourworld #audiofile #mauisun
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to