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 almost 6 years ago. Updated over 5 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

Also available in: Atom PDF