The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can't delete/rename files and directories

Discussion in 'General Discussion' started by mraab, Apr 1, 2008.

  1. mraab

    mraab Member

    Joined:
    Apr 1, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    Sounds bizar, but I can't perform simple file operations on one particular cpanel (11) account through the file manager. I am running web host manager on a virtual dedicated server, set up several accounts, all with cpanel, and one seems to be a bit stubborn :confused:. In fact, the limitation only applies to some subdirectories. I can't even change permissions on those directories and get the following error message: FileOp Failure on:... Operation not permitted.

    What could be the reason for this behavior? What do I have to change?

    Many thanks,
    Matthias
     
    #1 mraab, Apr 1, 2008
    Last edited: Apr 1, 2008
  2. mraab

    mraab Member

    Joined:
    Apr 1, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    Ok, found it: ownership of directories and files was set to nobody... Now, how does that happen if I do all file/folder operations through cpanel?
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Were the files/directories maintained by or created by PHP or CGI scripts? If you are not running SuPHP and SuExec,that's how that can happen.
     
  4. commandoone

    commandoone Registered

    Joined:
    Oct 13, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I'm having the same problem.

    How did you change the ownership of the directories and files?

    Do I have to use shell or can I do it through the file manager somehow.

    I'm a little rusty on my basic linux commands.

    Thanks.
     
  5. forum17

    forum17 Active Member

    Joined:
    Mar 30, 2007
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    you can't change ownership from file manager change it from shell. Use following command to change the owernship of all files and folders recursively located under public_html folder.

    cd public_html
    chown username.username * -R
    in above command replace username by your cpanel username.

    Regards,
    Angelo S.
    http://midnight-cafe.co.uk
     
  6. commandoone

    commandoone Registered

    Joined:
    Oct 13, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, you guys rock.

    It means alot to see someone help out with what should be simple but not to the lay person.

    Thanks again for the quick reply.
     
Loading...

Share This Page