chown -R admin:admin
The owner should be defined as the owner of your web server. For example, the owner and group can be 'www-data'. I doubt that it is 'admin'.
root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin operator:x:11:0:operator:/root:/sbin/nologin games:x:12:100:games:/usr/games:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin nobody:x:99:99:Nobody:/:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin polkitd:x:999:998:User for polkitd:/:/sbin/nologin avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin postfix:x:89:89::/var/spool/postfix:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin ntp:x:38:38::/etc/ntp:/sbin/nologin tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin systemd-bus-proxy:x:998:996:systemd Bus Proxy:/:/sbin/nologin systemd-network:x:997:995:systemd Network Management:/:/sbin/nologin saslauth:x:996:76:Saslauthd user:/run/saslauthd:/sbin/nologin rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin named:x:25:25:Named:/var/named:/bin/false webapps:x:1000:1000::/var/www/html:/bin/false apache:x:995:1001::/var/www:/bin/false diradmin:x:994:994::/usr/local/directadmin:/bin/false mysql:x:993:993:MySQL server:/var/lib/mysql:/bin/false majordomo:x:992:2::/etc/virtual/majordomo:/bin/false nginx:x:991:991::/home/nginx:/bin/false dovecot:x:990:990::/home/dovecot:/bin/false admin:x:1001:1004::/home/admin:/bin/bash
webapps:x:1000:1000::/var/www/html:/bin/false apache:x:995:1001::/var/www:/bin/false nginx:x:991:991::/home/nginx:/bin/false
/home/admin/domains/mydomain.com/public_html
Comment