remote mode and authentication

Hi,

Is there a way to disable the prompt for userid and password when using smpatch in remote mode? Based on what I read, it seems that it is not possible unless one uses -l and -p options of smpatch.

Reason: I would like to create a cronjob that will do a remote smpatch update in several SunUC client from a central SunUC proxy server on a monthly basis.

Prompting for userid and password defeats the purpose of having the updates done automatically without human intervention.

[504 byte] By [shen] at [2007-11-26 10:22:14]
# 1

Hi.

If the issue is with having passwords visible on the command line, then I might suggest using public key authentication (which doesn't require any passwords if set up appropriately) to run 'smpatch' via ssh, e.g.

$ ssh root@smpatchclient 'smpatch update'

You could also set up a cron job on the clients themselves.

Let us know what you think.

ForumModerator at 2007-7-7 2:22:20 > top of Java-index,Administration Tools,Sun Update Connection-System...