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.

File Ownership.

Discussion in 'General Discussion' started by JohnodACD, Nov 30, 2005.

  1. JohnodACD

    JohnodACD Active Member

    Joined:
    Oct 21, 2005
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    I uploaded files when loged in as root. Now i am needing those files to be reflecting th eownership of the site user. Is there a way to do this either in cpanel or any addon that someoen can reccomend?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    chown user.user file
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Not in cpanel or any addon that I know of. Since it was uploaded by root, only root can change it. Have to go in shell as root to change it.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. JohnodACD

    JohnodACD Active Member

    Joined:
    Oct 21, 2005
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    I can log in as root into ssh can anyone tell me teh commands to access to do this.?
     
  6. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    I think I expainded erlier


    chown username.username /path to file

    or you can do it from the actual directory

    cd /path to file


    chown username.username file
     
  7. JohnodACD

    JohnodACD Active Member

    Joined:
    Oct 21, 2005
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    can i do this for a list of files in a directory
     
  8. JohnodACD

    JohnodACD Active Member

    Joined:
    Oct 21, 2005
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    i have found that you can once in the directory before the onw you want to change you can use the command

    chown -R newowner:newgroup directory_name
     
Loading...

Share This Page