smt-ncc-sync returns: cannot open file /etc/zypp/credentials.d/NCCcredentials for read: Permission Denied
This document (7015483) is provided subject to the disclaimer at the end of this document.
Subscription Management Tool (SMT) for SUSE Linux Enterprise 11
SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)
SUSE Linux Enterprise Server 11 Service Pack 2 (SLES 11 SP2)
SUSE Linux Enterprise Server 11 Service Pack 1 (SLES 11 SP1)
cannot open file /etc/zypp/credentials.d/NCCcredentials for read: Permission Denied
:/etc/zypp/credentials.d # getfacl NCCcredentials
# file: NCCcredentials
# owner: root
# group: root
or some variation of the above listing. The problem is that the smt user and www group need r-x access to the file. This can be fixed by using setfacl to set the correct facls for the NCCcredentials file.
While in the /etc/zypp/credentials.d/ subdirectory run the following commands as root:
setfacl -m user:smt:r-x NCCcredentials
setfacl -m group:www:r-x NCCcredentials
NOTE: On the SLES 12 SP1 Subscription Management Tool the file name is SCCcredentials and not NCCcredentials.
smt-ncc-sync should now run without returning the Permission Denied error.
NOTE: if setfacl returns "Operation not supported" check the entry for the partition contain /etc in the /etc/fstab file. The line must include the acl option:
/dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WCAZA1258151-part2 / ext3 acl,user_xattr 1 1
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7015483
- Creation Date: 06-Aug-2014
- Modified Date:03-Mar-2020
- Subscription Management Tool
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com