[Samba] howto cache 'root' password for net commands?

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Jun 20 04:26:34 MDT 2011

On Sun, Jun 19, 2011 at 08:34:11PM -0700, Linda Walsh wrote:
> I have a minorly complicated root password that is hard to type correctly,
> quickly....yet samba 'seems' to be  encouraging me to create a
> simple one in order to do managagement on the server via 'net'....
> I don't like to type the password more than once, the more times I
> type it, the more times it can be either monitored, or seen, or
> whatever...
> So am I doing something incorrectly in my server management -- because
> one has to run as 'root' to manage things with the net command, so you've
> already typed in the password -- but then it asks you to type in the password
> again.
> Even windows save credentials under your login....so why is 'net' re-asking
> me root's password, when it knows I am running as root?   (when I don't, it
> says most things won't work (and they don't)....)...so how to cache?
> Or is there some setting I've munged to create this problem for myself?
> (certainly not inconceivable... ;-) )...

Try to start winbind, then

wbinfo --ccache-save


net --use-ccache

Haven't tested that for a while, so it might not work. But
it's supposed to :-)

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

More information about the samba mailing list