guischarf

Member
Sep 27, 2006
5
0
151
Hello,

When I upload files using FTP the files owner is the same as the FTP login (exm: [email protected]) 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 [email protected]:user

I get the following message

chown: `[email protected]`: invalid user

How can I set the user to be [email protected] using chown?

Thanks
 

rustelekom

Well-Known Member
PartnerNOC
Nov 13, 2003
290
0
166
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 [email protected] but username:username format.