Project

General

Profile

Bug #12745

SSH Configuration Technique on AIX does not reload correctly sshd service when there's been a change

Added by Nicolas CHARLES 6 months ago. Updated 5 months ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

If agent changed the config of SSH, on an AIX, the sshd service is not restarted
Command called is

/usr/bin/stopsrc -s sshd && until /usr/bin/lssrc -s sshd | /usr/bin/grep -q inoperative; do /usr/bin/perl -e 'select(undef,undef,undef,.25)'; done; /usr/bin/startsrc -s sshd

however, the command is not executed within a shell, so the && is seen as an argument of stopsrc - which fails totally:

Q: "...in/stopsrc -s s": 0513-040 Usage is one of:
Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -a 
Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -g group_name
Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -s subsystem_name
Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -p subsystem_pid
Q: "...in/stopsrc -s s": stopsrc [-h host] [-f] -t subserver_type [-o subserver_object] [-p subsystem_pid]
Q: "...in/stopsrc -s s": stopsrc [-h host] [-f] -t subserver_type [-P subserver_pid] [-p subsystem_pid]

we need to run the command within a shell

Associated revisions

Revision 64178cf9 (diff)
Added by Nicolas CHARLES 6 months ago

Fixes #12745: SSH Configuration Technique on AIX does not reload correctly sshd service when there's been a change

History

#1 Updated by Nicolas CHARLES 6 months ago

  • Status changed from New to In progress

#2 Updated by Nicolas CHARLES 6 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1310

#3 Updated by Normation Quality Assistant 6 months ago

  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES

#4 Updated by Nicolas CHARLES 6 months ago

  • Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ

#5 Updated by Normation Quality Assistant 6 months ago

  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES

#6 Updated by Nicolas CHARLES 6 months ago

  • Status changed from Pending technical review to Pending release

#7 Updated by Vincent MEMBRÉ 6 months ago

  • Category changed from System techniques to Techniques

#8 Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.13, 4.2.7 and 4.3.3 which were released today.

Also available in: Atom PDF