Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4802

Beginners • How to allow root level access thru SFTP/SMB

$
0
0
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:

Code:

[root]path = /writeable = yesbrowseable = yespublic = nocreate mask = 0777directory mask = 0777
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.

Statistics: Posted by ethanic — Fri Jun 28, 2024 7:40 am



Viewing all articles
Browse latest Browse all 4802

Trending Articles