{"id":104,"date":"2009-04-14T16:07:31","date_gmt":"2009-04-15T00:07:31","guid":{"rendered":"http:\/\/www.wilyness.com\/blog\/?p=104"},"modified":"2009-04-30T17:43:33","modified_gmt":"2009-05-01T01:43:33","slug":"configuring-vmware-server-2-authentication","status":"publish","type":"post","link":"https:\/\/www.wilyness.com\/blog\/?p=104","title":{"rendered":"Configuring VMWare Server 2 authentication"},"content":{"rendered":"<p>Recently I&#8217;ve needed to install a virtual machine on my spiffy RHEL 5.3 system, so I turned to VMWare, since its free Server software (1.0 series) worked fine on Ubuntu Dapper.\u00c2\u00a0 So I tried installing Server 2, because newer is better, right (you know where I&#8217;m going&#8230;)?<\/p>\n<p>Server 2 does user-level authentication, so you need to specify the admin user at setup time.\u00c2\u00a0 That will be the only user (initially) that can touch the vmware instance.\u00c2\u00a0 This means that if you disable the root password, then you should not choose &#8216;root&#8217; as that user.<\/p>\n<p>So this is fine, except that I couldn&#8217;t login initially.\u00c2\u00a0 The trick is that VMWare does its own user authentication off of the normal \/etc\/{passwd,shadow} files, and I was authenticating with Kerberos as an AFS user.<\/p>\n<p>Here&#8217;s how to fix things.\u00c2\u00a0 You need to modify \/etc\/vmware\/pam.d\/vmware-authd .\u00c2\u00a0 Upon installation, it contains:<\/p>\n<p><code> #%PAM-1.0 <\/code><br \/>\n<code>auth\u00c2\u00a0\u00c2\u00a0   required\u00c2\u00a0\u00c2\u00a0 pam_unix.so\u00c2\u00a0\u00c2\u00a0 shadow nullok<\/code><br \/>\n<code>account\u00c2\u00a0 required\u00c2\u00a0  pam_unix.so <\/code><br \/>\nYou need to add a line so it looks like:<\/p>\n<p><code>#%PAM-1.0<\/code><br \/>\n<code>auth      sufficient\u00c2\u00a0 pam_krb5.so use_first_pass\u00c2\u00a0 refresh_creds debug\u00c2\u00a0<\/code><br \/>\n<code>auth\u00c2\u00a0\u00c2\u00a0    required\u00c2\u00a0\u00c2\u00a0 pam_unix.so\u00c2\u00a0\u00c2\u00a0 shadow nullok<\/code><br \/>\n<code>account\u00c2\u00a0\u00c2\u00a0 required\u00c2\u00a0  pam_unix.so <\/code><br \/>\nI used \/etc\/pam.d\/system-auth as a reference. (I&#8217;m not sure the &#8216;debug&#8217; part is needed.)<\/p>\n<p>Since I couldn&#8217;t find anything online (this is one thing that google didn&#8217;t really know) that fixed things, I hope this is useful and saves a few hours or so for somebody somewhere.\u00c2\u00a0 The <a title=\"link to forum post\" href=\"http:\/\/www.linuxquestions.org\/questions\/linux-security-4\/vmware-pam.d-how-do-i-enable-nis-614417\/\">closest post<\/a> I found didn&#8217;t seem to have a clear resolution and solution.<\/p>\n<p><strong>Update<\/strong>: If something gets borked and it says your user is unauthorized, you can set the admin user by editing the value in the &lt;ACEDataUser&gt; tag in \/etc\/vmware\/hostd\/authorization.xml .<\/p>\n<p>Let me know if I&#8217;ve missed anything&#8211;all I can say is that this worked for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I&#8217;ve needed to install a virtual machine on my spiffy RHEL 5.3 system, so I turned to VMWare, since its free Server software (1.0 series) worked fine on Ubuntu Dapper.\u00c2\u00a0 So I tried installing Server 2, because newer is &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.wilyness.com\/blog\/?p=104\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/104"}],"collection":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":0,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}