On Oct 10, 2006, at 2:55 PM, martinko wrote:
[ ... ]
The thing is that if I just simply create an rc script to achieve this,
the script is run under root and ssh cannot make use of public key
authentication which is set up now for a user running it manually.
Or is there a way to change identity somehow or to run an rc script
under different user account ??

Of course. One can use "su -" to run a command under another user, or use the "ssh -i" option to pass the user's identity (ie, their SSH private key) directly...

--
-Chuck

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to