Skip to main content

Hello,
what are the minimum permissions that linux user needs to have to be able to do file level restore using Veeam?
Setup is as it follows:

I have Rocky Linux 9.5 OS VM and I have Win Server host where Veeam is located. 
The goal is to be able to do file level restore from that Linux server. The thing is I need user for it.
What I would like to do, I only want the user to be able to do restore from one specific directory, I don’t want him to be able to see anything else or do anything else, except the restore part, what is the best way to achieve this?

Hi curious,

i am confused

you are trying to mount backup image to mount server, which does not have full permission? Then echo is correct - as managed server has to be flr appliance, so this has to have full permission like directly root or over sudoers file: ALL ALL


No worries...glad to help where we can.

It’s good to work through such things to try and be as secure as possible...I get it 😊


@Marcel.K Yes. Basically I am mounting backup image to the backup server in this example, and user (even thought I am not quite clear what does he do since as I said I am beginner), doesn’t have root/sudo.
 

@coolsport00 Thank you.


Hi ​@curious - did you get an answer to your question and if so can you please share so we can mark an answer as “Best Answer” even if it is yours.

 
 
 

Hi curious, as we explain, there is no other way, because mount server is only on server, which is registered as backup component in managed servers. And registering is provided with full permission.

For example for this mounting of vmdk you need full permission

In the past i was trying to limit some users, even veeam is providing documentation for full permission, but there were always new and new commands, so gave up ….


Thank you once again ​@Marcel.K I agree, I had the same idea, like you did, but I guess yeah, new commands will be coming in all the time, makes no sense to do it this way in that case


Great to see you were able to resolve your issue with help from the community.  😊


Let’s try to summarize it:
Adding Linux server to backup inventory, creating user and trying to connect via ssh keypair. 
This user, what is minimum set of permissions for him to have? 

2nd user, used for creating backup job and restoring, same question?


hi curious,

for adding server into section managed servers you need root or user elevated to root (like in sudoers ALL ALL - no matter if user has password or key only)

what do you mean with user used for job creation? - this user on VBR server could be just “user” in windows, but in console has to have veeam administrator role

guest credentials are another topic - it depends if you would like to restore file form server in managed servers - because they are registered as veeam components - so you dont need credentials

 


When I try to create job and when I come to this step it’s asking me for credentials:
 

I do need it no? I’m backing up from server that I added to backup infrastructure


yes, because it will install veeam agent software on that server.

So you would like to backup server, which is part of managed servers? If this server is physical, then you cannot backup itself component, only if its VM, then is ok without credentials liek backup of proxy servers.


Server is VM it’s not physical, I would like to backup specific files from that server, restore them back on that same server and on different server. 
yes, because it will install veeam agent software on that server. <--- yes, what permissions do I have to give, wheel group? Elevation in Veeam? Not very clear on it. Sorry for obvious questions.

 


officially:

username ALL=(root) NOPASSWD: ALL

 

but you can try like:

username ALL=(root) NOPASSWD: /bin/hostname, /bin/uname, /bin/arch, /bin/cat,

/usr/bin/test, /bin/mkdir, /bin/rmdir, /bin/chown, /usr/bin/id, /usr/bin/veeamconfig, 
<package-manager paths>, /bin/sh, /bin/touch, /bin/chmod, /bin/rm, /bin/ps, /bin/mv, /tmp/VeeamAgent*

maybe during your test, you will need more ….


Would you recommend one user to do all of it, when I mention user I am always talking about Linux user. So adding this VM linux machine to Veeam, backing up and restoring file to that same server.
When restoring to another linux VM on same network I assume I still need user with same permissions?

 


i would recommend to backup entire VM without credentials via VM backup job

to restore file to another server you will need credentials from destination server - same permission ...

 


Why do you recommend doing it that way, if you can elaborate would be great

I am already backing up whole machine, but I would like to be able to backup specific files so I can restore those specific files only


is easier to manage backups

Since version 12, second issue is certificate. If on this server is already Veeam transport service it will create certificate. If you will install agent on this server it will overwrite transport’s certificate, so both cannot work together. 


Not sure I understand. I do not need agents if we are talking about virtual machine and not physical ones. 
I got the task to do some file level backup and restore for some archive that we have on some servers with minimal set of permissions for needed linux users.
Veeam is installed on windows machine, I am backing up linux vm and restoring on that same vm and on some other linux vm.


what this VM is part of managed servers? is there any role assigned on it?


I want to test it on 2 VMs, they are DB servers. 


it depends, if you need to backup databases there or not

but anyhow, you don’t need to add them into manage servers in console - is not needed

if you need backup databases, then you need to use full privileged user, then you will be able to restore via this credentials over enterprise manager

if you don’t need to backup them, then you need low priviledges user

so you need privileges only as file as

for example create file where owner is user01

so that file is restoreable with user01, condition is to have exec permission for home directory and /tmp for this user, this is minimum 


Comment