Re: Daily insecurity report and drop priv accounts for handling automated tasks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Holland <nick@...>
Cc: <misc@...>
Date: Tuesday, November 13, 2007 - 11:46 pm

Dave,

In our backup environment the backup user needs a shell and home dir for
ssh keys as you described. The passwd is disabled and ssh keys are
required. We also limit access to the backup user to specific source ip
addresses like the backup server.

We also use ssh wrappers. Using the command argument in the ssh keys file
you can have a script check what command is being run. The backup user only
needs to accept rsync so that is what we are validating. If any other
command is run or if a shell is requested the connection is denied. This is
a link to the explanation of our backup methodology and at the bottom is an
example of the rsync wrapper script.

Rsync remote files to backup server
http://calomel.org/backup_server_rsync.html

As Nick explained, if you have untrustworthy admins any setup can be
compromised. I suggest writing a script to execute a simple command like
"ls" using the backup user. If "ls" is successful, the wrapper in not
working.

If anyone has any other recommendations I would be interested in hearing
about them. There is always room for improvement.

--
Calomel @ http://calomel.org
Open Source Research and Reference

On Tue, Nov 13, 2007 at 10:17:07PM -0500, Nick Holland wrote:

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Daily insecurity report and drop priv accounts for handl..., Calomel, (Tue Nov 13, 11:46 pm)