After achieving my goal in the last question.
I have realized about problems writing data in var-www-html/wp-content/themes
i had set UIG/GID of var-www-html to 33 because i think those wordpress process inside of the container run as www-data user (33)
Here you can check the UID/GID of the directory inside of the container
podman run --rm -it wordpress:6.0.2-php7.4-apache grep www-data /etc/passwd
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
But the problem persist, can’t create new directories as normal user chris
in the host, I do can use sudo
but the idea is open that directory with vscode.
I don’t understand, should be able to delete write etc there.
[chris@fedora themes]$ ll
total 4
drwxr-xr-x. 1 100032 100032 538 Sep 30 00:12 construction-hub
-rw-r--r--. 1 100032 100032 28 Jun 5 2014 index.php
drwxr-xr-x. 1 100032 100032 224 Sep 30 00:12 roofing-contractor
drwxr-xr-x. 1 100032 100032 0 Sep 30 04:44 roofing-contractor-child
drwxr-xr-x. 1 100032 100032 454 Aug 30 12:40 twentytwenty
drwxr-xr-x. 1 100032 100032 598 Aug 30 12:40 twentytwentyone
drwxr-xr-x. 1 100032 100032 188 Aug 30 12:40 twentytwentytwo
[chris@fedora themes]$
According to the below output 100032
is in the range of subuid
. Why can’t create new directories without using sudo.
[chris@fedora themes]$ cat /etc/subuid
chris:100000:65536
tom:165536:65536
[chris@fedora themes]$
Resources
I want to be able to edit files from the host , for example edit files inside var-www-html/wp-content/themes
directory using vscode editor.
Thanks in advance.