Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

change owner to user@domain.com

Discussion in 'General Discussion' started by guischarf, Nov 6, 2006.

  1. guischarf

    guischarf Member

    Joined:
    Sep 27, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    When I upload files using FTP the files owner is the same as the FTP login (exm: login@domain.com) and the group is the same as the FTP login without the @ (exm: login).

    If I upload a TAR file and then using ssh untar it, the unTARed directories and file have owner root and group root. If I try to chown the files and directories so that the owner is the same as the FTP owner, I get an error about the user being invalid. For example, if I try

    chown -R user@domain.com:user

    I get the following message

    chown: `user@domain.com`: invalid user

    How can I set the user to be user@domain.com using chown?

    Thanks
     
  2. rustelekom

    rustelekom Well-Known Member
    PartnerNOC

    Joined:
    Nov 13, 2003
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    moscow
    it's very easy, just read output of command chown --help
    :)
    or if you need more explanation you can always use man chown.

    in the short words you should use not user@domain.com but username:username format.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Shinichi Kato

    Shinichi Kato Well-Known Member

    Joined:
    Mar 7, 2005
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Saitama-ken,japan
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice