{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3852","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3852/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3852/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3852/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3852","id":104031244,"number":3852,"title":"The startup script should support system accounts with /sbin/nologin","user":{"login":"raehalme","id":3288306,"avatar_url":"https://avatars.githubusercontent.com/u/3288306?v=3","gravatar_id":"","url":"https://api.github.com/users/raehalme","html_url":"https://github.com/raehalme","followers_url":"https://api.github.com/users/raehalme/followers","following_url":"https://api.github.com/users/raehalme/following{/other_user}","gists_url":"https://api.github.com/users/raehalme/gists{/gist_id}","starred_url":"https://api.github.com/users/raehalme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raehalme/subscriptions","organizations_url":"https://api.github.com/users/raehalme/orgs","repos_url":"https://api.github.com/users/raehalme/repos","events_url":"https://api.github.com/users/raehalme/events{/privacy}","received_events_url":"https://api.github.com/users/raehalme/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-31T10:58:12Z","updated_at":"2015-09-04T23:31:02Z","closed_at":null,"body":"The 1.3.0 build adds support for running Spring Boot applications as Unix/Linux services which is a welcome improvement!\r\n\r\nSystem accounts typically use `/sbin/nologin` as their default shell to deny improper use of the account. The startup script should support this by, for example, defining a shell to use when starting the application under the specified account.\r\n\r\nA simple solution would be to provide parameter `-s /bin/sh` to the `su` command in the [launch.script](https://github.com/spring-projects/spring-boot/blob/master/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script#L127). More advanced solution could allow the user to specify the shell in the environment variables, but I doubt if it would be useful.\r\n\r\nWhat do you think? I'm happy to provide a pull request, if necessary."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/137878080","html_url":"https://github.com/spring-projects/spring-boot/issues/3852#issuecomment-137878080","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3852","id":137878080,"user":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T23:31:02Z","updated_at":"2015-09-04T23:31:02Z","body":"A pull request would be most welcome. Are there any downsides to always passing `-s /bin/sh`?"}}