Topic: how i can make this config
HI,
i have a user web01 with ssh login. the home dir is: /var/www/vhost/web01
ls -la /var/www/vhost/web01
total 20
drwx--x--- 5 web01 psaserv 4096 Aug 9 22:31 .
drwxr-xr-x 10 root root 4096 Aug 10 13:35 ..
drwxr-xr-x 2 web01 psacln 4096 Aug 9 22:31 error_docs
drwxr-x--- 5 web01 psaserv 4096 Aug 10 19:13 httpdocs
drwx------ 2 web01 root 4096 Aug 10 03:16 logs
ls -la /var/www/vhost/web01/httpdocs
drwxr-xr-x 9 www-data psacln 4096 Aug 9 22:50 wp-admin
-rw-r--r-- 1 www-data psacln 271 Aug 9 22:48 wp-blog-header.php
-rw-r--r-- 1 www-data psacln 3513 Aug 9 22:48 wp-comments-post.php
-rw-r--r-- 1 www-data psacln 3431 Aug 10 08:35 wp-config.php
drwxr-xr-x 7 www-data psacln 4096 Aug 10 17:23 wp-content
-rw-r--r-- 1 www-data psacln 2718 Aug 9 22:48 wp-cron.php
drwxr-xr-x 10 www-data psacln 4096 Aug 9 22:52 wp-includes
How i can Force the www-data user for all files in the directory? If i try it with Force user and the HomeDir is /var/www/vhost/web01/httpdocs i cant login because the user www-data has no permissions to read the home directory.
<User web01>
Home /var/www/vhost/web01/httpdocs
ForceUser www-data
ForceGroup psacln
</User>
thx magnat