#1 Global Leader in Data Resilience

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: 2024-09-16
mailbox
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

Verify noexec Setting

Use the following command to check whether /tmp has been mounted with noexec.

mount | grep noexec | grep tmp
mount grep example

Assign Alternate Folder Usage

Limitations and Considerations

It is possible to change which folder Veeam Backup & Replication will use. However, it is critical to note that:

  • This will change the path Veeam Backup & Replication uses when communicating with all Linux servers.
  • The registry value declares only which folder should be used; Veeam will not attempt to create the folder specified.
  • 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 the custom folder specified is missing, some tasks/jobs will fail.

Registry Setting Details

The following registry setting can be created on the Veeam Backup Server to assign a different folder to be used.

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

More Information about mounting attributes and fstab

To submit feedback regarding this article, please click this link: 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 hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

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 hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
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.