Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users without home directory will not be able to log-in #2834

Closed
Tracked by #8745
ioannisky opened this issue Jul 4, 2019 · 2 comments · Fixed by #9413
Closed
Tracked by #8745

Users without home directory will not be able to log-in #2834

ioannisky opened this issue Jul 4, 2019 · 2 comments · Fixed by #9413
Assignees
Labels
bug c-ju Internal Customer Reference c-te Internal Customer Reference

Comments

@ioannisky
Copy link

ioannisky commented Jul 4, 2019

What happened:
When I try to connect to a remote node I some times get the following error.

ERRO [NODE]      Unable to run shell command (bash): fork/exec /bin/bash: no such file or directory id:30 local:127.0.0.1:3022 login:<username> remote:xxx.xxx.xxx.xxx:58860 teleportUser:ioannis srv/sess.go:605
ERRO [NODE]      fork/exec /bin/bash: no such file or directory regular/sshserver.go:1230

What you expected to happen:
Login to the node successfully.

How to reproduce it (as minimally and precisely as possible):
Create a user with a home directory pointing to a non existing location. Try to login to that node with that user. After creating the home directory the problem goes away.

Environment:

  • Teleport version (use teleport version):
    Teleport v4.0.0-rc.3 git:v4.0.0-rc.3-2-g1544d40 go1.10.3
  • Tsh version (use tsh version):
    Teleport v4.0.0-rc.3 git:v4.0.0-rc.3-2-g1544d40 go1.10.3
  • OS (e.g. from /etc/os-release):

Browser environment

  • Browser Version (for UI-related issues):
  • Install tools:
  • Others:

Relevant Debug Logs If Applicable

  • tsh --debug
  • teleport --debug
@ioannisky ioannisky changed the title Users without home directory will not be able to loggin Users without home directory will not be able to log-in Jul 4, 2019
@benarent benarent added the bug label Aug 5, 2019
@fspmarshall
Copy link
Contributor

Making note here... openssh seems to drop you into / if the user's home directory does not exist, so thats probably the correct fallback to use.

@angelomellos
Copy link

Plus one on this. I just ran into this issue on a host running 4.3.2.

@russjones russjones added the c-te Internal Customer Reference label Apr 27, 2021
@russjones russjones mentioned this issue Dec 3, 2021
14 tasks
@pschisa pschisa added the c-ju Internal Customer Reference label Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c-ju Internal Customer Reference c-te Internal Customer Reference
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants