I'm using NGINX to host a web server on my Pi 5 and would like to be able to edit my webpages/website directly via SFTP/SMB. I have Samba setup and created a root folder (/) that I am able to access on my Windows PC. However, I am unable to write to that folder (/var/www/html) and is view only since I assume it is outside of the user folder. I want to be able to have full root access that way I am able to write to that folder and I've tried doing just that with no success. Here's the code I put in my smb.conf file in Samba:Is there another way to do this or maybe a safer way? I know this is potentially a huge security risk but am not sure of other options on how to edit root-level files via SFTP/SMB.
TLDR; I want to be able to edit root-level files directly on my Pi from my Windows PC but am having trouble as they are write only.
Code:
[root]path = /writeable = yesbrowseable = yespublic = nocreate mask = 0777directory mask = 0777
TLDR; I want to be able to edit root-level files directly on my Pi from my Windows PC but am having trouble as they are write only.
Statistics: Posted by ethanic — Fri Jun 28, 2024 7:40 am