How to Resolve CIFS Backup Permission Errors and Remote Transport Issues in cPanel & WHM

How to Resolve CIFS Backup Permission Errors and Remote Transport Issues in cPanel & WHM

CIFS backup errorremote backup troubleshootingWHM transport pruning

~3 min read · Updated Feb 17, 2026

How to Resolve CIFS-mounted Backup Drive Permissions Errors


Valid for versions 82 through the latest version

Last modified: July 12, 2022


Overview

When performing a backup to a CIFS-mounted drive, you may encounter errors such as:


/bin/cp: failed to preserve ownership: Permission denied

These errors typically occur when the CIFS-mounted drive does not support extended attributes.


Resolve the Error

  1. Edit the /etc/fstab file and add the user_xattr option to the CIFS mount entry. Example:

//192.0.2.0/mybackup /backup cifs user,uid=500,rw,suid,credentials=/root/.cifs,user_xattr 0 0

  • The local user owns the mounted files.
  • The CIFS credentials are stored in /root/.cifs.

Important: Always store CIFS credentials in a secure file.


  1. Remount the CIFS drive:
mount -o remount /backup

  1. Verify extended attribute support:
lsattr /backup

Warning: If you see “Inappropriate ioctl for device,” the mount does not support extended attributes and cannot be used for cPanel backups.




How to Run Backups on Locally-Mounted Remote Filesystems


Last modified: July 14, 2025


Overview

To mount or unmount a partition, it must be listed in /etc/fstab. The backup utility only mounts partitions defined in this file.


Warning:

  • Backing up directly to remote filesystems (NFS, CIFS, smbfs, etc.) is not recommended.
  • cPanel & WHM does not officially support this configuration.
  • Work with a qualified system administrator to avoid data loss.

Configure the Filesystem

We strongly recommend mounting the backup filesystem with the noexec option:


/dev/sda5 /backup ext3 defaults,noexec 0 0

Remount the Backup Disk


mount -o remount,noexec /backup



How to Troubleshoot a Remote Transport Pruning Failure


Last modified: January 28, 2026


Overview

Remote backup pruning may fail if the process exceeds the 300‑second timeout limit. This section explains how to diagnose and resolve pruning failures.


Warnings:

  • Your FTP server must support MLSD or LIST commands.
  • Hidden files (dotfiles) must have write permissions.
  • Pure‑FTPd and ProFTPD are recommended for remote FTP servers.

Transport Error

When a transport error occurs, the system sends an email containing a preview and a full log. Example:


The system could not prune the "home/username/backups/2018-05-24" directory due to an error.

Troubleshooting


1. The Directory Is Too Large

  • Manually delete the directory:

rm -rf home/username/backups/2018-05-24

  • Disable the user’s backup in WHM:

WHM » Home » Backup » Backup User Selection


  • Change backup type from incremental to compressed.

Note: rsync does not support compressed backups.


2. The Backup Drive Is Too Slow

Replace the remote destination with a faster storage system.


3. Network Error

Run the backup again after the network stabilizes:


/usr/local/cpanel/bin/backup

4. Permission Denied

This occurs when:

  • A non‑root user connects to an rsync destination.
  • Files without write permissions exist in the user’s directory.

Fix by deleting the files or granting write permissions:


chmod +w file

Conclusion


By properly configuring CIFS mounts, managing remote filesystems, and troubleshooting pruning failures, administrators can ensure stable and reliable backup operations in cPanel & WHM.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue