1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Allowing plesk to delete/edite files owned by root

Discussion in 'Plesk for Linux - 8.x and Older' started by dstanley, Jun 28, 2005.

  1. dstanley

    dstanley Guest

    0
     
    Is this possible?

    How?
     
  2. hardweb

    hardweb Guest

    0
     
    This is possible only if you make Plesk to run as root, which is a major security risk.
     
  3. dstanley

    dstanley Guest

    0
     
    is there a way i can change the owner a directory/files and its subdirectories/files owner easily?
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Change to the directory which contains the client's (or users) main directory, then issue:

    chown ownername:groupname -R directoryname

    If you want to leave the groupname unchanged, then do not specify one, just put the ownername: (with the colon).

    Be careful if changing the domain's root/home directory, the owner/user name should be the same as the ftp user name for that domain, and the group should be psacln.

    The -R tells the command to do it recursively. You can also put -v to have chown list all files/folders which are changed.

    Before doing this, please tell us what directory structure you are thinking of changing the ownership on, so we can verify that you will not cause additional problems on your server!
     
  5. dstanley

    dstanley Guest

    0
     
    Thanks for the help! ... i was thinking of everything inside httpdocs/ in various domains (uploaded files via ssh and their owner is set to root)
     
  6. jamesyeeoc

    jamesyeeoc Guest

    0
     
    That's what I figured, so just make sure you chown the user to the ftp username for that domain, and might as well verify the group is psacln, and all should be well again in the land of nod....
     
  7. alex042

    alex042 Guest

    0
     
    Be careful to maintain the permissions of the way the directories were structured when the domain was created. i.e. chowning files from root to the domain is fine within httpdocs, httpsdocs, etc , but not recommended on some of the other folders at that level.
     
Loading...