📚
Documentation
Installation guides, configuration steps, and product documentation.
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
[root@vprotect ~]# id vprotectuid=2005(vprotect) gid=3000(vprotect) groups=3000(vprotect),6(disk)[root@vpro-srv ~]# id vprotectuid=993(vprotect) gid=990(vprotect) groups=990(vprotect),6(disk)[root@vprotect backups]# lltotal 0drwxr-xr-x. 3 993 990 27 Feb 4 15:58 test1__ee040cabdrwxr-xr-x. 3 993 990 27 Feb 4 15:57 test2__4388f763drwxr-xr-x. 3 993 990 27 Feb 3 17:01 test3__400055c7drwxr-xr-x. 3 993 990 27 Feb 3 16:59 test4__aed10417[root@vpro-srv backups]# lltotal 0drwxr-xr-x. 3 vprotect vprotect 27 Feb 4 15:58 test1__ee040cabdrwxr-xr-x. 3 vprotect vprotect 27 Feb 4 15:57 test2__4388f763drwxr-xr-x. 3 vprotect vprotect 27 Feb 3 17:01 test3__400055c7drwxr-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 ~]# 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 ~]# chown -R vprotect:vprotect /opt/vprotect/
[root@vprotect ~]# chown -R vprotect:vprotect /vprotect_data/backups