-
Notifications
You must be signed in to change notification settings - Fork 53
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
No such file or directory when trying to ssh #306
Comments
Hello, Perhaps strace will give some clue of what file/directory is attempting to be accessed or executed returning ENOENT (No such file or directory). |
Cool, will have a look, saw some examples. Is the pid the pid of sssd ? |
The problem only happens when logging in with SSSD? What does your sssd session recording configuration look like? Are you using setup steps similar to the following? SSSD will look for the tlog-rec-session binary in |
This looks like something set the tlog's shell-to-start to an empty string. |
ls -slrth /usr/bin/tlog-rec-session |
122568 06:57:03.321255 write(6</var/log/sssd/sssd_somedomain.co.za.log>, "(Tue Aug 18 06:57:03 2020) [sssd[be[somedomain.co.za]]] [simple_check_get_groups_primary] (0x0040): Could not look up primary group [1375800513]: [2][No such file or directory]\n", 170) = 170 <0.000039> |
cat sssd-session-recording.conf |
This is the only reference that I get pointing to "No such file or directory" in the strace |
When SSSD overlays the session recording configuration for tlog, SSSD sets an environment variable If I run the following on my system to indicate an empty string retrieved as the user's original shell:
Then I see the same error as you.
SSSD should read the user's original shell from NSS (getent passwd $user). Note that you will need to change |
Hi @nardusg did you have any luck figuring out the issue ? |
Sorry, still busy. Will check over the weekend or later today |
I had the same error due to
|
Hello, im using Fedora 33 and installed tlog from repositories. But im getting the same issue, i cant login with ssh from an remote machine anymore.
getent passwd username is showing me the "/usr/bin/tlog-rec-session" as shell, which should be correct: Permissions for /usr/bin/tlog-rec-session: If i do an ssh username@localhost it is working, showing me the recording-warning in motd and it is recording my actions.
I also tried the same on a fresh installed Fedora 33 machine. Same issue. What can i do? :-/ Thanks. |
I tried out the configuration without sssd. SSH into it worked, but not from every ssh client. It is working out of an ubuntu 18.04 machine, but for example not from my local mac os machine. |
Hi, the failure happens in attempting setting the locale from environment variables, the
Do you have |
Hi
Running out of ideas and been googling allot. When I login I get logged out immediately ? When I try to test from shell when logged in it works fine. Any ideas?
Centos 8, journal writer
Aug 17 14:59:38 server-01 -tlog-rec-session[8071]: {"ver":"2.2","host":"server-01","rec":"996685db744e446eaef0ea2943452606-1f87-222f0","user":"myuser","term":"screen-256color","session":9,"id":1,"pos":0,"timing":"=105x25+1>46","in_txt":"","in_bin":[],"out_txt":"No such file or directory\r\nFailed executing \r\n","out_bin":[]}
Aug 17 14:59:38 server-01 sshd[8070]: Received disconnect from 10.97.146.262 port 53674:11: disconnected by user
Thanks
Nar
The text was updated successfully, but these errors were encountered: