SMT - "Cannot open file: Permission denied" errors when running the mirror or the sync operation.

This document (7021080) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12
Subscription Management Tool 11
Subscription Management Tool 12

Situation

When trying to mirror a repository or to sync a SMT server against NCC/SCC it shows the following error:

"Cannot open file: Permission denied"

This error also applies when trying to synchronize the registration information to an external device as part of the procedure for a Disconnected SMT server.

Resolution

SMT includes a script that will verify the files/directory structure and set proper permissions and ACLs, and must be launched as root as follow:

# /usr/lib/SMT/bin/changeSMTUserPermissions.sh -y --user smt

As a requirement the system should be registered against NCC/SCC, if not, the script will show an error and will abort the operation. Because of this requirement, the script will not work on a Disconnected SMT server, in such scenario the permissions must be verified and changed manually by following these rules:

1- All directories from: /srv/www/htdocs/repo (inclusive and recursive) must have permissions: 755.

2- All files inside the directories described in rule 1 must have permissions: 644.

3- All files and directories described in rules 1 and 2 must belong (owner) to user: "smt" and to group: "www".

Cause

The mirror and/or sync process is not able to open or write a file inside of the SMT or System Registration directory structure.

Additional Information


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:7021080
  • Creation Date: 10-Jul-2017
  • Modified Date:03-Mar-2020
    • Subscription Management Tool
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

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

Join Our Community

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.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

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

Go to Customer Center