Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I'm using Fedora 15.After installing Filezilla in my local system.I connected it with my remote website. In the GUI of Filezilla in my local system, I can see the ...
  1. #1
    Just Joined! pradeeprajkumar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    71

    Access Permission Problem inside the ROOT directory

    Hi,
    I'm using Fedora 15.After installing Filezilla in my local system.I connected it with my remote website.
    In the GUI of Filezilla in my local system, I can see the files listed from the path:
    Code:
    /var/www/html/
    but I can neither save the file nor edit the file inside that directory through filezilla or even I cant do those things by direct access too,since its under the surveillance of root folder.
    Is there any other way to access those php/html files in that
    www
    folder by granting some priveleges or can we change the file location to another folder for apache to find the web pages ?

  2. #2
    Just Joined!
    Join Date
    Mar 2011
    Location
    pittsburgh
    Posts
    44
    option 1, through filezilla:

    you will probably want to create a special user/group in connection with filezilla if one doesn't already exist,
    you can use the chown command to give that user and group ownership like this:
    Code:
    chown -R username:group /var/www/html
    option 2, local access:

    this is probably the preferred option for security reasons.
    Fedora does not include sudo by default so I will show you how to use the su command instead. you need to make sure you have access to a user in the wheel group and as that user run commands like this:
    Code:
    su -c "nano /var/www/html/foo.html"
    the password it asks for is the root password of the system.
    so to run a command as root simply place it inside the parentheses after su -c

  3. #3
    Just Joined! pradeeprajkumar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    71
    When I tried to open the php file in the filezilla ui window, it gives an error as follows:
    Code:
    The file '/var/www/html/dbcheck.php' could not be opened:
    No program has been associated on your system with this file type.
    If associated program on my system is the problem, how to set it ?
    Actually I had made the php files to be opened in the gedit by default.Isn't that enough ?

  4. #4
    Just Joined! pradeeprajkumar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    71
    Hi, I modified some configuration settings in the filezilla ui window itself,So the file editor problem got fixed!
    Screenshot.jpg
    also your reply on usergroup helped me to get the access permission on the folders inside root.Thank you very much!!

Posting Permissions

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