To allow any user to connect using the pppd call ozemail command:
ppp:*:501:230:account for dial in:/tmp:/bin/bashand the group file entry is
pppusers:x:230:Check the permissions of ozemail-chat and peers/ozemail as described above, then...
connect 'chat -v -f /etc/ppp/ozemail-chat'It is possible to replace this line with
connect /etc/ppp/scripts/ppp-onand create the following /etc/ppp/scripts/ppp-on file:
#!/bin/sh /usr/sbin/chat -v -f /etc/ppp/ozemail-chat
You may need to create the scripts directory if it doesn't exist, or simply put the ppp-on script in /etc/ppp and change the line in /etc/ppp/peers/ozemail to read
connect /etc/ppp/ppp-onYou also need to ensure that ppp-on is executable:
This is all very nice, and makes no difference to your ppp connection! Whether or not you decide to use a ppp-on script, a ppp-off script can improve the way you terminate a ppp connection. Add the following line to /etc/ppp/peers/ozemail just below the connect line:
disconnect /etc/ppp/scripts/ppp-offAs before, it is up to you whether you put the ppp-off script in a scripts subdirectory or directly in /etc/ppp.
Since ppp-off is a standard script it is probably already on your system somewhere. Here it is:
#!/bin/sh DEVICE=ppp0 # If the ppp0 pid file is present then the program is running. Stop it. if [ -r /var/run/$DEVICE.pid ]; then kill -INT `cat /var/run/$DEVICE.pid` # # If the kill did not work then there is no process running for this # pid. It may also mean that the lock file will be left. You may wish # to delete the lock file at the same time. if [ ! "$?" = "0" ]; then rm -f /var/run/$DEVICE.pid echo "ERROR: Removed stale pid file" exit 1 fi # # Success. Let pppd clean up its own junk. echo "PPP link to $DEVICE terminated." exit 0 fi # # The ppp process is not running for ppp0 echo "ERROR: PPP link is not active on $DEVICE" exit 1
Remember to make both ppp-on and ppp-off executable.
chmod 755 ppp-o*
Secure shell
or
Open Secure shell
This transparently encrypts your entire session so that when you
log in to the computer at work your plain text password is not
sent down the phone lines.
Rsync
This is like a remote copy command, except it only copies the
differences between the files on the local and remote systems.
If you have a 5 Mbyte file on both computers, and the file at
work has (say) 1 Kbyte worth of differences from the file at
home, you'll save a ton of time using rsync rather than rcp.
The file you end up with is the same as if you had used rcp. Rsync
works for binaries, text files, directories etc.