Open didyouexpectthat opened 6 years ago
Hi
What issue you get with this ?
UIDs assigned if is available
So if 1000 is not avalaible it take 1001 if 1001 isnt it take 1002 as any order user / group
Something during install sets the uid to 1000 on several locations, namely the /usr/local/vesta/data and /etc/fail2ban/jail.local, but admin was user 1001. I fixed by find / -uid 1000
and changing the owner/group to admin.
Ok I get it and can reproduce it in centos
This issue come from repo, vesta not check the user, so, in default system when pack the deb / rpms and any orther stuff the user admin have uid 1000
Then unpack in orther system vesta just "unpack" and get uid and gid as it on 1000 and if orther user exists with iud 1000 system asign that file to uid 1000 user, in your case debian user, en centos 7 backup user
Easy to solve in any installer force chown at the end or tar /gzip files with --owner= option
I like the idea of tar/gzip
with --owner
since forcing chown
at the end requires you to remember which installation paths were used (example, not installing fail2ban). Do not want to maliciously overwrite permissions on good data.
Operating System (OS/VERSION):
Debian 9.3
VestaCP Version:
0.9.8-19
Installed Software (what you got with the installer):
Everything.
Steps to Reproduce:
Other Notes:
I see that in the install script it uses admin by user name but it somehow uses another UID somewhere later on.