Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    1

    Exclamation Cannot edit Files on server

    twisting my head here - when using any ftp program - you can see the files but when you try to access them and or try to make edits then it gives error upon returen - which you cannot make any downloads from the server or make edits to that file online? What could be causing this to check?? the current cpanel & WHM is

    cPanel 11.25.0-R42404 - WHM 11.25.0 - X 3.9
    FEDORA 1 i686 standard

    thanks.

  2. #2
    Member
    Join Date
    May 2006
    Posts
    271
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I could be wrong, but this sounds like an ownership (CHOWN, not to be confused with CHMOD permissions) issue.

    In other words, it sounds like the files you are trying to modify via FTP user are not owned by that FTP user, but rather another user on the server.

    For example:

    If you copied or created a file on the server via SSH/shell while you were logged in as "root", and then you FTP'd in to the server as user "example", then you would not be able to delete/edit etc... the file because it is owned by user "root".

    An example of how to fix the example scenario I just described would be to log in to the server via SSH and chown the files to the user:group of the FTP user you want to give control to. That would go something like this at the prompt in SSH:

    chown exampleuser:exampleuser /home/exampleuser/public_html/filename

    So in other words, if you have user account on the server called "jim" but you created a file in /home/jim/public_html/ called test.html from SSH logged in as root, then the user jim would not own the file test.html - root would own it. Then when jim logs in via FTP he can't edit test.html because the user root owns the file. If you want to give jim ownership of it, you'd ssh in to the server and as user root you would do "chown jim:jim /home/jim/public_html/test.html and then jim will be able to FTP in and edit / delete the file (or do the same from his cPanel file manager).

    BUT BEFORE YOU USE MY ADVICE YOU SHOULD GET ANOTHER OPINION.

    I would hate to be the one to give you bad information. Perhaps someone here can confirm or disagree with my post and help a little further.

Similar Threads & Tags
Similar threads

  1. Add unassigned domains zone to other server without manually edit files
    By iri.pl in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 08-17-2011, 02:14 AM
  2. How to edit the .cgi files
    By green-hosts in forum cPanel Developers
    Replies: 3
    Last Post: 03-03-2010, 05:28 AM
  3. How to edit my server files ?
    By 4402734 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-04-2006, 04:40 AM
  4. Edit root files
    By botic in forum New User Questions
    Replies: 3
    Last Post: 06-13-2004, 12:13 AM
  5. Getting Internal Server Error when I click 'edit' to edit ma
    By fog in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-12-2002, 11:13 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube