[bug] sshd does not reload after checking ssh access on user.

DominicH

Verified User
Joined
Dec 22, 2015
Messages
9
Hello All

When I check SSH Access under an user, directadmin will do all the actions except reloading sshd.
when sshd is reloaded manual the user can access ssh.

also the errortask log does not give any sshd errors.

DA version: 1.49.1
OS: CentOS 7

Am I missing something?

Kind regards,

Dominic
 
Hello Dominic,

Directadmin admin level => Licensing / Updates

What do you see at the bottom in a line "Compiled on" ? Is it still CentOS 7 there?
 
Hello Dominic,

Directadmin admin level => Licensing / Updates

What do you see at the bottom in a line "Compiled on" ? Is it still CentOS 7 there?

Compiled on CentOS 7.0 64-Bit
Compile Date Oct 31 2015, 07:24:33
Server Version 1.49.1
Current Available Version 1.491000
Last Updated Sat Oct 31 12:24:40 2015
Last Restart Tue Dec 22 10:47:01 2015
 
From here it looks fine.

I don't have right now CentOS 7 with DA for testing. So probably other who has DA on CentOS 7 could check and approve it.
 
From here it looks fine.

I don't have right now CentOS 7 with DA for testing. So probably other who has DA on CentOS 7 could check and approve it.

I checked also with other centos 7 they all seem to have the same problem, altho there are not many users that require ssh, so never noticed before.
 
Hmm... I've just tested our CentOS 7 64-bit box, and in /var/log/messages, after changing a User, I am seeing this:
Code:
Dec 24 01:08:02 es7-64-test systemd: Reloading OpenSSH server daemon.
Dec 24 01:08:02 es7-64-test systemd: Reloaded OpenSSH server daemon.
and /var/log/directadmin/system.log, this:
Code:
2015:12:24-01:08:02: sshd reloaded
and lastly, /var/log/secure:
Code:
Dec 24 01:07:35 es7-64-test usermod[19668]: change user 'testuser' shell from '/bin/bash' to '/bin/false'
Dec 24 01:08:02 es7-64-test sshd[1133]: Received SIGHUP; restarting.
Dec 24 01:08:02 es7-64-test sshd[1133]: Server listening on 0.0.0.0 port 22.
Dec 24 01:08:02 es7-64-test sshd[1133]: Server listening on :: port 22.
can you confirm you see these entries?

DA itself would be running this:
Code:
/usr/bin/systemctl reload sshd.service
are you running anything different when doing it manually?

Also ensure you're waiting the full minute to give the dataskq to do the reload.
I've just tested, and at least on our test box, it seems to be working.

John
 
Sorry for the late reply, was not at the office during the holidays.

I have checked.

And indeed, when a user is created and ssh is checked sshd will be reloaded.
only when the user is created without ssh and ssh added later it does not reload.

But the user is added to the allowusers list.
 
Back
Top