Posts

Showing posts from May, 2010

Display user account info in a Windows AD

(Hell just froze over! I'm actually using Active Directory! In Windows! {Well, I did use Active Directory in a previous job, but that was because of LDAP...} {And I'm using waaay too many exclamation marks!} Anyway: it's the command line -- gosh, I miss the C:\ prompt. Not!) To display user info in an Active Directory domain controller: C:\> net user username /domain Read this for more details.

Zypper clean-up

So I was having this problem updating some Kerberos 5 patches in my SuSE test environment -- apparently a patch RPM was broken. I tried fixing that by downloading them directly, not using sudo /usr/bin/zypper up but sudo /bin/rpm -Uvh krb5.patch.rpm instead. No dice. Since there was no yum clean equivalent in the Zypper version (0.6.201) in my server, I promptly deleted all sources under /var/lib/zypp/cache , thinking I could just refresh the cache later on. Well, it didn't quite work that way. Zypper complained about missing sources, so I had to look for the source files that refer to the cached source directories: sudo grep -l Source.garbage /var/lib/zypp/db/sources/* and removed them as well. I did another run of sudo /usr/bin/zypper up and I was able to install the patches successfully. There must be a better way of doing this...