Project

General

Profile

Actions

Bug #12745

closed

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

Added by Nicolas CHARLES over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

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

Actions #1

Updated by Nicolas CHARLES over 6 years ago

  • Status changed from New to In progress
Actions #2

Updated by Nicolas CHARLES over 6 years 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
Actions #3

Updated by Rudder Quality Assistant over 6 years ago

  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
Actions #4

Updated by Nicolas CHARLES over 6 years ago

  • Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
Actions #5

Updated by Rudder Quality Assistant over 6 years ago

  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
Actions #6

Updated by Nicolas CHARLES over 6 years ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by Vincent MEMBRÉ over 6 years ago

  • Category changed from System techniques to Techniques
Actions #8

Updated by Vincent MEMBRÉ over 6 years 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.

Actions

Also available in: Atom PDF