SUSE Support

Here When You Need Us

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.

Environment

Subscription Management Tool (SMT) for SUSE Linux Enterprise 12 SP1
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)

Situation

Running smt-ncc-sync returns:

cannot open file /etc/zypp/credentials.d/NCCcredentials for read: Permission Denied


Resolution

Looking at the facls of the /etc/zypp/credentials.d/ will show that the facls for user and group are set incorrectly:

:/etc/zypp/credentials.d # getfacl NCCcredentials
# file: NCCcredentials
# owner: root
# group: root
user::rw-
group::---
other::---

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

for example.

Disclaimer

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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.