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.

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:
    1
    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:
    16
    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.
     
  3. Shinichi Kato

    Shinichi Kato Well-Known Member

    Joined:
    Mar 7, 2005
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Saitama-ken,japan
Loading...

Share This Page