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.

Singe directory seems to have locked up! [moved]

Discussion in 'General Discussion' started by cryztal, Jun 27, 2005.

  1. cryztal

    cryztal Registered

    Joined:
    Jun 27, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Singe directory seems to have locked up!

    Hi and thanks for reading!

    I installed a component for a CMS system, it is a single folder inside the system, when i try to delete it via ftp or the cpanel file admin,

    In FTP:

    [R] DELE view.php
    [R] 550 Could not delete view.php: Permission denied

    and in the File Manager (cpanel) it just wont drop to the trash folder.


    Anyone know what this can be? I dont think it has anything with chmod to do? I can rename the folder btw, i cannot upload new files to it though.

    Thanks again!
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    If you're encountering a permssions error, it will be due to you having insufficient permissions or the directory having the wrong ownership.

    If you have root access, just delete the directory from root shell if you don't need it. If you don't have root access you will need to contact your hosting provider.
     
  3. cryztal

    cryztal Registered

    Joined:
    Jun 27, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    thanks for the quick reply!

    i have a WHM, im a reseller,

    so i should have root on the accounts i make?
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, you won't have root access, you'll have to get support from your hosting provider.
     
  5. alxcds

    alxcds Registered

    Joined:
    Jan 1, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    What about the opposite? I would like to make a file in the users directory (instructions on some web things), but I don't want them to be able to delete it. I want it to be accessible online, but not user-deletable (is that even a word?).

    Thanks
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You can make the file immutable:

    chattr +i /path/to/file.ext

    then no-one, including root can delete or modify the file. To do so, root has to run:

    chattr -i /path/to/file.ext

    first.
     
Loading...

Share This Page