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... ;-) )...
Volker Lendecke
2011-Jun-20 10:26 UTC
[Samba] howto cache 'root' password for net commands?
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 and 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