Script execution on Linux target fails with “Permission Denied” even when executed as root.

KB ID: 2099
Product: Veeam Backup & Replication
Published: 2016-02-15
Last Modified: 2022-04-29
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

Challenge

When interacting with Linux servers, Veeam Backup & Replication may encounter a “Permission Denied” error during script execution (Pre-freeze, post-thaw, and repository data mover agent scripts), even when the account being used is the root user.

Cause

All script files are uploaded to and executed from /tmp, which may be mounted with the “noexec” attribute.

Veeam uses the path /tmp to store temporary files in keeping with the Filesystem Hierarchy Standard.

Solution

If there is an entry for the mount point /tmp with the attribute noexec, the /etc/fstab will need to be edited to remove this attribute.
Execute this command:
mount | grep noexec | grep tmp
Example:
mount grep example

More information

Advanced Alternate Solution

If, for security reasons, it is not feasible to disable noexec on the /tmp folder, you may create the following registry value on the Veeam Backup Server to assign a different folder to be used. This change will change the path Veeam Backup & Replication uses when communicating with all Linux servers. If you use this registry setting, you must ensure that the folder path specified in the registry value exists on every Linux server that Veeam will communicate with. If not, some tasks/jobs will failExamples:
• Oracle Guest Processing
• Pre-Freeze/Post-Thaw Scripts
• File Level Restore
as they will not attempt to create the folder path.

Key Location: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\
Value Name: LinAgentFolder
Value Type: String (REG_SZ) Value
Value Data: 

The Value Data specified must be a path without the trailing slash

Example:

  • /folder/subfolder   
  • /folder/subfolder/   

Reference Information:

More Information about mounting attributes and fstab

Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.