Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2004 18:13:15 -0300 (EST)
From:      Marcelo Souza <mpsouza@centroin.com.br>
To:        Remko Lodder <remko@elvandar.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ssh root denied
Message-ID:  <Pine.BSI.4.33.0404131808060.3880-100000@hypselo.centroin.com.br>
In-Reply-To: <407C5430.2090002@elvandar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Tue, 13 Apr 2004, Remko Lodder wrote:

|>
|> 	But, what should be te correct approach when you want to copy
|> root's files and/or remote execute programs as root with scripts using
|> scp/ssh and key authentication?
|> 	Like:
|>
|> 	scp master.passwd host2:/etc/
|> 	or
|> 	ssh host2 'pwd_mkdb -p /etc/master.passwd'
|
|"remote execute programs" why? cant you locally run them and fetch them
|with a dedicated lowerlevel account?

	Use my example above, supose you need to sync passwd between two
hosts, using an script via cron. Even if you tar/chown it and copy with
low level user, you will need to regenerate the passwd.

- Marcelo




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.4.33.0404131808060.3880-100000>