Re: Run a small script at shutdown/reboot

2014-02-18 Thread Jon Danniken
On 02/18/2014 03:13 AM, Jaikumar Sharma wrote: > Hi Jon, > > On Tue, Feb 18, 2014 at 9:16 AM, Jon Danniken wrote: > >> Hello list, I have a small script (foobar.sh) which I would like to run >> at shutdown or reboot: >> >>> So what am I missing here?

Re: Run a small script at shutdown/reboot

2014-02-18 Thread Jon Danniken
On 02/18/2014 05:57 AM, Jonathan Dowland wrote: > If you have cron on your machine, I think the easiest thing to do is to > use the '@reboot' cron time specification, either in /etc/crontab, a > file in /etc/cron.d or root's personal crontab. e.g. > > @reboot /usr/local/bin/foobar.sh > > assu

Run a small script at shutdown/reboot

2014-02-17 Thread Jon Danniken
Hello list, I have a small script (foobar.sh) which I would like to run at shutdown or reboot: __ #!/bin/bash if [ -a /test/foo.bar ]; then mv /test/foo.bar /test/foo.foo fi _ I placed the script into /etc/init.d/, made it executable

Re: How can I secure a Debian installation?

2014-01-28 Thread Jon Danniken
On 01/28/2014 12:37 PM, Brian wrote: > On Tue 28 Jan 2014 at 11:40:04 -0800, Jon Danniken wrote: > >> Thanks Brian, I ended up removing openssh-server, as it was not >> something I needed; it was automatically installed and set up to run as >> a "feature" of th

Re: How can I secure a Debian installation?

2014-01-28 Thread Jon Danniken
On 01/28/2014 03:57 AM, Brian wrote: > On Mon 27 Jan 2014 at 20:24:42 -0800, Jon Danniken wrote: > >> I recently came across a posting by an individual who got his >> Debian machine compromised due to a number of security problems, one of >> which was the default installa

Re: How can I secure a Debian installation?

2014-01-28 Thread Jon Danniken
On 01/28/2014 01:53 AM, Brad Alexander wrote: > On Tue, Jan 28, 2014 at 12:41 AM, Scott Ferguson < > scott.ferguson.debian.u...@gmail.com> wrote: > >> >> >> Keep updated, subscribe to the security list, read and follow the fine >> manual:- >> https://www.debian.org/doc/manuals/securing-debian-howt

Re: How can I secure a Debian installation?

2014-01-27 Thread Jon Danniken
On 01/27/2014 09:41 PM, Scott Ferguson wrote: > > Keep updated, subscribe to the security list, read and follow the fine > manual:- > https://www.debian.org/doc/manuals/securing-debian-howto/ Thanks Scott, that's just what I was looking for. Jon -- To UNSUBSCRIBE, email to debian-user-requ...@

How can I secure a Debian installation?

2014-01-27 Thread Jon Danniken
Hello list, I recently came across a posting by an individual who got his Debian machine compromised due to a number of security problems, one of which was the default installation and running of sshd with "PermitRootLogin = Yes". in /etc/ssh/sshd_config. So I checked the Debian installation tha