Re: Updating files in /etc Remotely (and automated)

2010-09-17 Thread B. Alexander
I agree with Jesús. This is a far more elegant and scalable solution, though my experience is with cfengine [1]. This allows you to use svn or cvs to manage the master files, check out the files to your workstation, make changes and commit, and depending on how you have it set up, have the changes

Re: Updating files in /etc Remotely (and automated)

2010-09-16 Thread T o n g
On Sun, 12 Sep 2010 14:31:12 -0400, Hal Vaughan wrote: > . . . someone sent it to me > privately a little while ago. While I like what Rob Owens suggested, > I'm leaning toward this. I think it's possible that I could send up the > minimum information in a file and have the cron job be a Perl s

Re: Updating files in /etc Remotely (and automated)

2010-09-13 Thread Jesús M. Navarro
Hi, Hal: On Saturday 11 September 2010 23:15:50 Hal Vaughan wrote: > I will be working with a server on the Internet that uses rsync and is > running Debian. I will be setting up initial /etc/rsyncd.conf and > /etc/rsyncd.secrets files on it. But along the way, whenever a new user is > added, th

Fwd: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Huang, Tao
-- Forwarded message -- From: Hal Vaughan Date: Sun, Sep 12, 2010 at 11:52 PM Subject: Re: Updating files in /etc Remotely (and automated) To: "Huang, Tao" On Sep 12, 2010, at 9:33 AM, Huang, Tao wrote: > On Sun, Sep 12, 2010 at 5:15 AM, Hal Vaughan wrote:

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Eduardo M KALINOWSKI
On 09/12/2010 07:04 PM, Joe wrote: Note that sudo does not completely mimic root behaviour. Commands using >, and presumably other composite commands, will depend on the user's own permissions. In an 'all-root' directory, with no existing file2: sudo cp file1 file2 works as expected sudo tou

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Joe
On 12/09/10 21:24, Rob Owens wrote: On Sun, Sep 12, 2010 at 02:35:00PM -0400, Hal Vaughan wrote: On Sep 12, 2010, at 12:37 PM, Rob Owens wrote: ... When using ssh keys to log in, you can specify (in ~/.ssh/authorized_keys) a command which will automatically run when that key is used to log in

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Rob Owens
On Sun, Sep 12, 2010 at 10:58:22PM +0100, Steve Kemp wrote: > On Sun Sep 12, 2010 at 16:24:59 -0400, Rob Owens wrote: > > > If you run "sudo somescript", then the script runs as root, so every > > command inside it will run as root. > > I think it is generally considered smarter, security-wise, to

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Steve Kemp
On Sun Sep 12, 2010 at 16:24:59 -0400, Rob Owens wrote: > If you run "sudo somescript", then the script runs as root, so every > command inside it will run as root. > I think it is generally considered smarter, security-wise, to > run "somescript" and then include "sudo" inside the script as > ne

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Rob Owens
On Sun, Sep 12, 2010 at 02:35:00PM -0400, Hal Vaughan wrote: > > On Sep 12, 2010, at 12:37 PM, Rob Owens wrote: > ... > >>> When using ssh keys to log in, you can specify (in > >>> ~/.ssh/authorized_keys) a command which will automatically run when that > >>> key is used to log in. And that

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Hal Vaughan
On Sep 12, 2010, at 12:37 PM, Rob Owens wrote: ... >>> When using ssh keys to log in, you can specify (in >>> ~/.ssh/authorized_keys) a command which will automatically run when that >>> key is used to log in. And that key will be useless to do anything >>> else. Simply using that key to co

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Hal Vaughan
On Sep 12, 2010, at 1:45 PM, Joe wrote: > On 11/09/10 22:15, Hal Vaughan wrote: >> I will be working with a server on the Internet that uses rsync and is >> running Debian. I will be setting up initial /etc/rsyncd.conf and >> /etc/rsyncd.secrets files on it. But along the way, whenever a new

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Joe
On 11/09/10 22:15, Hal Vaughan wrote: I will be working with a server on the Internet that uses rsync and is running Debian. I will be setting up initial /etc/rsyncd.conf and /etc/rsyncd.secrets files on it. But along the way, whenever a new user is added, they'll need to be updated. I can

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Hal Vaughan
On Sep 12, 2010, at 12:37 PM, Rob Owens wrote: > On Sun, Sep 12, 2010 at 12:01:26PM -0400, Hal Vaughan wrote: >> >> On Sep 12, 2010, at 10:51 AM, Rob Owens wrote: >> >>> On Sat, Sep 11, 2010 at 05:15:50PM -0400, Hal Vaughan wrote: I will be working with a server on the Internet that uses r

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Rob Owens
On Sun, Sep 12, 2010 at 12:01:26PM -0400, Hal Vaughan wrote: > > On Sep 12, 2010, at 10:51 AM, Rob Owens wrote: > > > On Sat, Sep 11, 2010 at 05:15:50PM -0400, Hal Vaughan wrote: > >> I will be working with a server on the Internet that uses rsync and is > >> running Debian. I will be setting u

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Hal Vaughan
On Sep 12, 2010, at 10:51 AM, Rob Owens wrote: > On Sat, Sep 11, 2010 at 05:15:50PM -0400, Hal Vaughan wrote: >> I will be working with a server on the Internet that uses rsync and is >> running Debian. I will be setting up initial /etc/rsyncd.conf and >> /etc/rsyncd.secrets files on it. But

Re: Updating files in /etc Remotely (and automated)

2010-09-12 Thread Rob Owens
On Sat, Sep 11, 2010 at 05:15:50PM -0400, Hal Vaughan wrote: > I will be working with a server on the Internet that uses rsync and is > running Debian. I will be setting up initial /etc/rsyncd.conf and > /etc/rsyncd.secrets files on it. But along the way, whenever a new user is > added, they'l

Updating files in /etc Remotely (and automated)

2010-09-11 Thread Hal Vaughan
I will be working with a server on the Internet that uses rsync and is running Debian. I will be setting up initial /etc/rsyncd.conf and /etc/rsyncd.secrets files on it. But along the way, whenever a new user is added, they'll need to be updated. I can use ssh on this system, but, of course,