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

sshd marked as requires restart ( Centos6 ) #158

Closed
mphilipps opened this issue Aug 12, 2019 · 7 comments
Closed

sshd marked as requires restart ( Centos6 ) #158

mphilipps opened this issue Aug 12, 2019 · 7 comments
Labels
Milestone

Comments

@mphilipps
Copy link

hi,
We have noticed that on our Centos6 Servers sshd is always marked as requiring a restart when someone is using the internal-sftp.

From our sshd config:

Match User some-user
ChrootDirectory /chroot/%u
ForceCommand internal-sftp -f AUTH -l INFO -u 002
PasswordAuthentication yes
X11Forwarding no
AllowTcpForwarding no

When running needrestart with -v it complains about not finding the sshd binary, presumably because it is running in a chroot?

The odd thing for me is that we only see that on Centos 6, but we use the same ssh config on all of our servers.

@liske
Copy link
Owner

liske commented Sep 7, 2019

Could you please provide the output of needrestart -v?

@mphilipps
Copy link
Author

@no-response no-response bot removed the moreinfo label Sep 11, 2019
@liske
Copy link
Owner

liske commented Nov 3, 2019

When running needrestart with -v it complains about not finding the sshd binary, presumably because it is running in a chroot?

Yes and I'm already pondering for some time to ignore missing binary files. While running on GNU/Linux this should be OK since the map file (/proc/$PID/maps) should be more reliable if using namespaces or chroots.

The odd thing for me is that we only see that on Centos 6, but we use the same ssh config on all of our servers.

I have no idea, another needrestart -v dump from a non-affected system might give us an idea.

@liske liske added this to the v3.5 milestone Nov 3, 2019
@mphilipps
Copy link
Author

Here is a dump from a non-affected Centos 7 System. (ssh isn't mentioned)
https://gist.github.com/mphilipps/860563d2af03cd73cdb2ec30dea44e0c

Quite a bit has changed between Centos 6 to Centos 7. Different init system (upstart -> systemd), openssh 5.3 vs 7.4 (+ Redhat Patches).

selinux is disabled on both of them.

@liske liske closed this as completed in 4271153 Dec 19, 2019
@liske
Copy link
Owner

liske commented Dec 19, 2019

The default configuration has been changed to ignore non-existing files (see also #152) which should fix your issue, too.

@mphilipps
Copy link
Author

Noted, going to test this as soon as 3.5 is released.

@mphilipps
Copy link
Author

issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants