basnek
Dabbler
- Joined
- Feb 2, 2023
- Messages
- 20
Hello everyone,
I have a problem as a result of being new to this topic and I would like to know if anyone of you could help me.
I have previously read information but I have not been able to find what I need.
It should be noted that until a few months ago I had an environment set up since 2017 with FreeNAS and I was forced to migrate to TrueNAS and now that everything has been reconfigured, I find myself with a need that I had previously resolved and that now I cannot find the solution.
My system is made up of a series of datasets within the pool. One of them oriented to work.
Access from Windows and Linux terminals to the dataset is correct and you can create folders, files, modify them, delete them. I have been able to work and organize information without problems.
Now, since I work in web development, I have created a Jail and implemented FAMP in it and this is where the problems arise.
When creating a Vhost that must read from a particular folder I always get a 403 error and it is probably due to a permission configuration error.
I leave you screenshots of everything I think is needed to be able to follow what I am doing wrong.
I thank you in advance for your enormous help since after so many tests I am lost and surely someone with experience can tell me how stupid I am and where I have the problem. Thank you so much
PS: In fact, I am so lost that after some of my last attempts I can no longer see the files on the mount point when entering through putty with the user. I can only see them with the shell via root
I have a problem as a result of being new to this topic and I would like to know if anyone of you could help me.
I have previously read information but I have not been able to find what I need.
It should be noted that until a few months ago I had an environment set up since 2017 with FreeNAS and I was forced to migrate to TrueNAS and now that everything has been reconfigured, I find myself with a need that I had previously resolved and that now I cannot find the solution.
TrueNAS-13.0-U5.3
SuperMicro X8DTL-3
Processor (CPU) - 2 x Intel Xeon CPU E5620 @2.40GHz
Threads: 16
24 GB RAM
4 HD x 4TB
SuperMicro X8DTL-3
Processor (CPU) - 2 x Intel Xeon CPU E5620 @2.40GHz
Threads: 16
24 GB RAM
4 HD x 4TB
My system is made up of a series of datasets within the pool. One of them oriented to work.
Access from Windows and Linux terminals to the dataset is correct and you can create folders, files, modify them, delete them. I have been able to work and organize information without problems.
Now, since I work in web development, I have created a Jail and implemented FAMP in it and this is where the problems arise.
When creating a Vhost that must read from a particular folder I always get a 403 error and it is probably due to a permission configuration error.
# cat /usr/local/etc/apache24/extra/httpd-vhosts.conf
<VirtualHost *:58038>
DocumentRoot "/sites/creativat/dev/mcm.info/web/httpdocs"
ServerName xxxxxx.dynu.net
ErrorLog /sites/creativat/dev/mcm.info/web/httpdocs/logs/error_log
CustomLog /sites/creativat/dev/mcm.info/web/httpdocs/logs/access_log common
<Directory "/sites/creativat/dev/mcm.info/web/httpdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:58038>
DocumentRoot "/sites/creativat/dev/mcm.info/web/httpdocs"
ServerName xxxxxx.dynu.net
ErrorLog /sites/creativat/dev/mcm.info/web/httpdocs/logs/error_log
CustomLog /sites/creativat/dev/mcm.info/web/httpdocs/logs/access_log common
<Directory "/sites/creativat/dev/mcm.info/web/httpdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
I leave you screenshots of everything I think is needed to be able to follow what I am doing wrong.
I thank you in advance for your enormous help since after so many tests I am lost and surely someone with experience can tell me how stupid I am and where I have the problem. Thank you so much
PS: In fact, I am so lost that after some of my last attempts I can no longer see the files on the mount point when entering through putty with the user. I can only see them with the shell via root
Attachments
-
files-inside-user-group.jpg222.9 KB · Views: 128
-
access_log.jpg236.2 KB · Views: 129
-
error_log.jpg260.9 KB · Views: 136
-
ssh-user-alex-denied.jpg23 KB · Views: 123
-
truenas-apache-403.jpg70.1 KB · Views: 132
-
apache-edit-01.jpg78.8 KB · Views: 138
-
famp-base.jpg63 KB · Views: 129
-
truenas-storage-pools-edit-acl.jpg83.1 KB · Views: 130
-
truenas-mount-points-edit.jpg150.2 KB · Views: 131
-
truenas-jails-php8.jpg151.1 KB · Views: 137
-
truenas-saring-smb-share-acl.jpg145.3 KB · Views: 128
-
truenas-sharing-smb-edit.jpg84.8 KB · Views: 120
-
truenas-sharing-smb.jpg158.5 KB · Views: 133
-
truenas-accounts-my-groups.jpg142.5 KB · Views: 125
-
truenas-accounts-my-user.jpg158.8 KB · Views: 123
-
truenas-pool-dataset-permisions.jpg80.9 KB · Views: 130
-
truenas-pool-rataset-options.jpg89.8 KB · Views: 144
-
truenas-pool.jpg194.4 KB · Views: 144