{"id":83,"date":"2008-11-05T18:06:52","date_gmt":"2008-11-06T00:06:52","guid":{"rendered":"http:\/\/www.pervasivecode.com\/blog\/?p=83"},"modified":"2008-11-05T18:06:52","modified_gmt":"2008-11-06T00:06:52","slug":"hiding-a-cli-only-user-account-in-mac-os-x-105-leopard","status":"publish","type":"post","link":"http:\/\/www.pervasivecode.com\/blog\/2008\/11\/05\/hiding-a-cli-only-user-account-in-mac-os-x-105-leopard\/","title":{"rendered":"Hiding a CLI-only user account in Mac OS X 10.5 Leopard"},"content":{"rendered":"<p>A year and a half ago I installed the excellent PostgreSQL via MacPorts, and had to create a user account manually. Annoyingly, this postgres user shows up in the GUI login screen and Fast User Switching menu under Leopard. I found a fix today.<br \/>\n<!--more--><br \/>\nI dug around a few months ago, and found some options to solve this annoyance that I didn&#8217;t like very much. Changing the shell to \/usr\/bin\/false works but then you can&#8217;t su to postgres. Changing the UID to <500 and enabling the plist option to hide <500 UIDs seems like a kludge. I was looking for a minimally invasive tweak, that would just make it not show up in that menu. Breaking the account so I can't use it the same way, or altering systemwide behavior, seemed drastic given that there are several other system accounts that have the desired behavior.\n\nToday I decided to fix this and looked harder at what <code>dscl<\/code> would tell me about other hidden accounts. The solution that worked and didn&#8217;t seem icky to me was this:<br \/>\n<code>sudo dscl . append Users\/postgres Password '*'<\/code><\/p>\n<p>That sets the password string to *. This allows me to continue to <code>sudo su -l postgres<\/code> whenever I feel like it, but it isn&#8217;t shown as an account in the GUI. Hooray!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A year and a half ago I installed the excellent PostgreSQL via MacPorts, and had to create a user account manually. Annoyingly, this postgres user shows up in the GUI login screen and Fast User Switching menu under Leopard. I found a fix today.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,19],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-mac","category-postgresql"],"_links":{"self":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/83"}],"collection":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":0,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}