Closed newjones closed 7 years ago
Hi @newjones, two questions:
root
or are you running Teleport under your normal account and trying to create a shell for some other user?Hi @russjones, I run teleport with root. Then I create an account and this user session appears on web after login by two factor (google). The problem is when I try to launch the web console when appears the errors. Not, on baremetal.
@newjones looks like the login you're using for the web session does as a shell set to something which can't be found. If you SSH into that box (as the same user you're using in Web UI), and execute these commands:
$ ps -Fp $$
$ env
Can you please send the output for both?
Hi @kontsevoy :
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
@newjones ok, that didn't help, but I have a better idea now. I have prepared a special build of teleport
and uploaded a 64-bit Linux binary for you to try. Do you mind replacing teleport
executable with it and producing this error? It will output more debugging info:
$ curl http://s3.gravitational.io/ev/teleport.gz | gunzip > teleport
$ sha1sum teleport
b8493c6d1205505725c58d08a63bfddb934d7d38 teleport
$ chmod +x teleport
It will dump something that starts with ----->>>> &exec.Cmd
into the log, would you please try and post it back here? Thanks.
Hi @kontsevoy
ERRO[0111] ----->>>> &exec.Cmd{Path:"", Args:[]string{"-."}, Env:[]string{"LANG=en_US.UTF-8", "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games", "HOME=/home/
so, based on &exec.Cmd{Path:"", Args:[]string{"-."}
the shell seems to be set to an empty string for the OS user you're logging in as (you can probably look in your /etc/passwd
to confirm). It is unclear how is this possible... are you doing something funky like SSH into a container or something? we should probably respond with "shell is not set for user xxxx" or something.
Hi @kontsevoy yeahhh!! We use salt to deploy the skeleton of OS and seems the receipe generates on /etc/passwd empty last field (shell) although we never got problems on local and remote login shell sessions. Many thanks!!
hehe, software is hard, glad you were able to sort this out.
Hi, I was trying to test Teleport on a host with public IP. I run all teleport services binded to all interfaces and when I try by web launching the shell doesn't work and the logs throw following message:
Any idea?