Guest

Preview Tool

Cisco Bug: CSCvv04009 - list_installed_features.sh throws errors when run by non-root user

Last Modified

Jul 28, 2020

Products (1)

  • Cisco Policy Suite for Mobile

Known Affected Releases

19.5.0

Description (partial)

Symptom:
Issue found when running 'about.sh'. The 'list_installed_features.sh' script was modified between versions 19.3 and 19.5 to use the 'tee' command to direct output to /var/qps/bin/feature_list.txt . When executed as a non-privileged user ('qns' or other non-privileged user), the message "tee: /var/qps/bin/feature_list.txt: Permission denied" is displayed as part of the output. When used by 'about.sh', however, no features are listed-only the error messages are seen.

$ list_installed_features.sh
tee: /var/qps/bin/feature_list.txt: Permission denied
Features installed on qns03:9045
 com.broadhop.balance.service.feature=19.5.0.sp0145061
--X--SNIP--X--
 com.broadhop.vouchers.service.feature=19.5.0.sp0145061
tee: /var/qps/bin/feature_list.txt: Permission denied
Features installed on qns07:9045
...
$ 
$ about.sh
Cisco Policy Suite - Copyright (c) 2015. All rights reserved.

CPS Multi-Node Environment

CPS Installer Version - 19.5.0
--X--SNIP--X--
CPS Feature Versions
---------------------------
tee: /var/qps/bin/feature_list.txt: Permission denied
--X--SNIP--X--
tee: /var/qps/bin/feature_list.txt: Permission denied
cat: /var/qps/bin/feature_list.txt: No such file or directory
 Features installed on all (combined)

Deprecated CPS URLs
...

Conditions:
Execution of 'about.sh' or 'list_installed_features.sh' as non-root user ('qns' or other non-privileged user).
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.