Troubleshooting
Problem
The nzbackup command fails with permissions error when writing to a Samba-mounted file share
Symptom
An nzbackup operation is generating permissions errors when trying to write the backup file to a Samba-mounted file share on a Windows server.
nzbackup -db SAMPLE -dir /SAMBA_BACKUP/Netezza
Error: /SAMBA_BACKUP/Netezza/Netezza/NPS/SAMPLE/20090824222329/1/FULL/md/schema.xmlp Permission denied.
However, the nz user can write to the same file share from the command line.
Resolving The Problem
The root cause of this error is in how the Windows Samba file share is mounted. To avoid this error, you need to add the following settings to the -o (options) argument of the mount command:
- -o "uid=nz,credentials=/root/.smbcredentials"
The uid=nz portion is critical.
If the error persists, add the following syntax to the -o string:
- umask=0002,fmask=0777,dmask=0777
Historical Number
NZ056864
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21570540