Saving password feature for net rpc console utils.

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Jan 31 09:36:53 MST 2012

On Tue, Jan 31, 2012 at 04:19:14PM +0200, andrux0id wrote:
> i need your advices and some kind of consultation.
> i often use different net rpc commands from linux console to make
> certain things at windows pc's: monitoring launched services,
> checking registry entries and so on.
> it is embarrassing as for me to enter password for each command
> separately, but i dont want to pass passwords as command line option
> (when it possible), because it is unacceptable from security reasons
> (every can see parametres through the /proc).
> so i want to have some convinience: to be able to save user's login
> and their password for certain windows host at the linux pc in the
> ram for single net rpc session and execute the series of a commands
> to remote host just entering logon cridentials only once — at the
> net rpc launching and till quit command or ^D.
> So my questions are:
> 1. Maybe this feature (like it works in `net shell' for limited
> functions) already exists and i dont know about it simply. If it
> exists, please point me to this opportunity.

winbind should have that capability. Start winbind, then
wbinfo --ccache-save will save the password. If you then
give -C to your net command and you should be fine.

With best regards,

Volker Lendecke

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen, mailto:kontakt at

More information about the samba-technical mailing list