1

AIX pam ssh/sshd configuration not allowing sed or awk

view story
linux-howto

http://www.unix.com – This is a weird problem. Following is my code. Code: /opt/quest/bin/vastool configure pam sshd /opt/quest/bin/vastool configure pam ssh cat /etc/pam.conf | \ awk '$1=="ssh"||$1=="sshd"||$1=="emagent"{sub("prohibit","aix",$NF);}1' OFS='\t' > /etc/pam.conf cat /etc/ssh/sshd_config | \ sed -e 's/^UsePAM no/UsePAM yes/' > /etc/ssh/sshd_config If I remove below from the script, both awk and sed are working accordingly. Code: /opt/quest/bin/vastool configure pam sshd /opt/quest/bin/vastool configure pam ssh But if I (HowTos)