{"action":"created","issue":{"url":"https://api.github.com/repos/lxdock/lxdock/issues/133","repository_url":"https://api.github.com/repos/lxdock/lxdock","labels_url":"https://api.github.com/repos/lxdock/lxdock/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/lxdock/lxdock/issues/133/comments","events_url":"https://api.github.com/repos/lxdock/lxdock/issues/133/events","html_url":"https://github.com/lxdock/lxdock/issues/133","id":304980056,"number":133,"title":"Creating a default user","user":{"login":"robvdl","id":1018674,"avatar_url":"https://avatars3.githubusercontent.com/u/1018674?v=4","gravatar_id":"","url":"https://api.github.com/users/robvdl","html_url":"https://github.com/robvdl","followers_url":"https://api.github.com/users/robvdl/followers","following_url":"https://api.github.com/users/robvdl/following{/other_user}","gists_url":"https://api.github.com/users/robvdl/gists{/gist_id}","starred_url":"https://api.github.com/users/robvdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robvdl/subscriptions","organizations_url":"https://api.github.com/users/robvdl/orgs","repos_url":"https://api.github.com/users/robvdl/repos","events_url":"https://api.github.com/users/robvdl/events{/privacy}","received_events_url":"https://api.github.com/users/robvdl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-14T00:14:49Z","updated_at":"2018-03-14T13:30:31Z","closed_at":null,"author_association":"MEMBER","body":"For some features it would be useful to have a default user and possibly a default share.\r\n\r\nCurrently we have it using the first user in the list for user id mapping for the share, but this doesn't work for everyone, some people sort their list of users alphabetically and the first user is not always going to be the one they want to be the default user.\r\n\r\nOther times you might not even want to mess with the default user and using the default one, lxdock is fine.\r\n\r\nMy suggestion originally was to have an optional **default: yes** property on users in the lxdock.yaml file and I still think this could the best way to go. There should only be one default user, but having a different default user for each container should be fine as well.\r\n\r\nMy idea is:\r\n\r\n* If there are multiple default users, this is an error, lxdock won't run.\r\n* If there is one default user, use this user instead of \"lxdock\" and don't create the lxdock user.\r\n* If there is no default user specified, create the lxdock user (password lxdock).\r\n\r\nThe default user can be used in many places;\r\n\r\n* Default user to user for idmap.\r\n* Default user to use for \"lxdock shell\" instead of root.\r\n* Default user to be used for ansible provisioning\r\n* ??\r\n\r\nThe idea of a default share is that we always create a share called /lxdock and this is somewhat related to default users.  The only issue is that I tend to use a different mountpoint of /src/appname, so the question is what to do with the default share if the user has already mapped \".\" somewhere else.  Do we still setup the share then or not, if we do, we'll have two directories pointing to the same place."},"comment":{"url":"https://api.github.com/repos/lxdock/lxdock/issues/comments/373021035","html_url":"https://github.com/lxdock/lxdock/issues/133#issuecomment-373021035","issue_url":"https://api.github.com/repos/lxdock/lxdock/issues/133","id":373021035,"user":{"login":"kevcenteno","id":1154185,"avatar_url":"https://avatars1.githubusercontent.com/u/1154185?v=4","gravatar_id":"","url":"https://api.github.com/users/kevcenteno","html_url":"https://github.com/kevcenteno","followers_url":"https://api.github.com/users/kevcenteno/followers","following_url":"https://api.github.com/users/kevcenteno/following{/other_user}","gists_url":"https://api.github.com/users/kevcenteno/gists{/gist_id}","starred_url":"https://api.github.com/users/kevcenteno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevcenteno/subscriptions","organizations_url":"https://api.github.com/users/kevcenteno/orgs","repos_url":"https://api.github.com/users/kevcenteno/repos","events_url":"https://api.github.com/users/kevcenteno/events{/privacy}","received_events_url":"https://api.github.com/users/kevcenteno/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T13:30:31Z","updated_at":"2018-03-14T13:30:31Z","author_association":"NONE","body":"> If there is no default user specified, create the lxdock user (password lxdock).\r\nWe should also specify that the default user (whether `lxdock` or user-defined) is set for _password-less sudo_.  This ensures that provisioners run correctly\r\n\r\n> Do we still setup the share then or not, if we do, we'll have two directories pointing to the same place.\r\nThis doesn't seem to be much of an issue, (at least from my brief testing).  The advantages of having a default share (in particular, a reliable place for local provisioning scripts to run from and a presumably simpler implementation) outweigh the cons."}}
{"actor":{"display_login":"kevcenteno"}}