KB10023 Id of user vprotect is different on different nodes

📚

Documentation

Installation guides, configuration steps, and product documentation.

Explore documentation →

🎧

Support

Create a support request or review your existing cases.

Go to support →

⬇️

Download trial

Download the product trial and try it out.

View downloads →

KB10023 Id of user vprotect is different on different nodes

KB ID: 10023

Product: vProtect

Version: not applicable

Published: 2021-02-26

Last modified: 2021-02-26

Problem

Files and directories in the backup directory have different users id

 

example:

The output from shell of user id from different hosts and output of the same file list from shared storage

shell

[root@vprotect ~]# id vprotect
uid=2005(vprotect) gid=3000(vprotect) groups=3000(vprotect),6(disk)

[root@vpro-srv ~]# id vprotect
uid=993(vprotect) gid=990(vprotect) groups=990(vprotect),6(disk)


[root@vprotect backups]# ll
total 0
drwxr-xr-x. 3 993 990 27 Feb 4 15:58 test1__ee040cab
drwxr-xr-x. 3 993 990 27 Feb 4 15:57 test2__4388f763
drwxr-xr-x. 3 993 990 27 Feb 3 17:01 test3__400055c7
drwxr-xr-x. 3 993 990 27 Feb 3 16:59 test4__aed10417


[root@vpro-srv backups]# ll
total 0
drwxr-xr-x. 3 vprotect vprotect 27 Feb 4 15:58 test1__ee040cab
drwxr-xr-x. 3 vprotect vprotect 27 Feb 4 15:57 test2__4388f763
drwxr-xr-x. 3 vprotect vprotect 27 Feb 3 17:01 test3__400055c7
drwxr-xr-x. 3 vprotect vprotect 27 Feb 3 16:59 test4__aed10417

 

Solution

Change id of user vprotect to the same like the other one

 

Change settings of user vprotect with wrong id

[root@vprotect ~]# usermod -u 993 vprotect

[root@vprotect ~]# usermod -u 993 vprotect

[root@vprotect ~]# groupmod -g 990 vprotect

After that, we must reboot vProtect VM

 

Files in the home directory will have the file UID changed automatically

Files that are located outside the home directory must be changed manually

[root@vprotect vprotect_data]# chown -R vprotect:vprotect /opt/vprotect/

[root@vprotect ~]# chown -R vprotect:vprotect /opt/vprotect/

[root@vprotect ~]# chown -R vprotect:vprotect /vprotect_data/backups