Results 1 to 4 of 4

Thread: No write access to /var/www with nginx

  1. #1
    Join Date
    Jul 2013
    Location
    Silent Hill
    Beans
    75
    Distro
    Ubuntu

    No write access to /var/www with nginx

    Hi! I am setting up a server with nginx to run a dotnet core page using the Piranha cms. I am learning as I go. I added my user to the www-data group but it still won't let me write to the /var/www/html folder to run the code from there. Is there anything else I should do to gain write access to that folder? I just need to be able to run a command that creates all of the folders for the Piranha cms page. Thanks in advanced.

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: No write access to /var/www with nginx

    Quote Originally Posted by Blix775 View Post
    Hi! I am setting up a server with nginx to run a dotnet core page using the Piranha cms. I am learning as I go. I added my user to the www-data group but it still won't let me write to the /var/www/html folder to run the code from there. Is there anything else I should do to gain write access to that folder? I just need to be able to run a command that creates all of the folders for the Piranha cms page. Thanks in advanced.
    You can verify the permissions by running this command:

    Code:
    sudo ls -ld /var/www/html
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,263
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: No write access to /var/www with nginx

    And verify your own group membership with
    Code:
    id
    You will need to log out and in again to pick up changes to your group membership.

  4. #4
    Join Date
    Oct 2017
    Location
    City of Waterfalls-Ph
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: No write access to /var/www with nginx

    you can use super user or you have to access it via root server to have permission to all kinds of changes to the server data. you just have to be more careful so that you will not be able to ruin the server. I know you already know this one.
    Code:
    sudo su
    corn ubuntuforums community.
    Open Source platform where the real world of human is here. Click here for Solve thread
    Rock n' Roll People.
    From: mike_08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •