[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 Questions



On Sun, Apr 11, 1999 at 02:30:05AM -0500, Chris Hoover wrote:
> 1.  How can I get my machine to automatically start fetchmail after
> a reboot?  Also, how do I have it ran by a user other than root
> (it is only setup to run as me right now)?

Debian's boot process is fairly well-described at:
http://www.debian.org/doc/FAQ/debian-faq-12.html#ss12.5

Change the owner of your script to you and set its setuid bit.

$ chown myusername thefilename
$ chmod u+s thefilename

Be extra careful about access permissions when you do this because
other users may be able to execute this script as you.

> 2.  Is there a way to script the startup of a remote program?  I want
> to have wmmon and wmppp start up every time I log into my machine.
> However they are located on my other linux box.

You can use ssh (or rsh for that matter) to connect and run the file.  This can be kind of complicated to set up since you don't want to have to type your password.  But basically, you'd be putting a command like 'ssh my.machine.name my_command_name' in your .bashrc.  The target computer would need to be running sshd.  On the local computer ask ssh to generate a key pair (ssh-keygen), and append the public key it generates to the file ~/.ssh/authorized_keys on the remote computer.


Reply to: