Command for file owner change

Locked
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Command for file owner change

Post by frajer »

Hey!

Does exist any command, for changing an file owner and group?

Some stuff on my website is running as a root, and i am just finding some way, how to change it to user account, without any file lose.
That stuff has more than 1 GB, so unfortunaly i cant download it and put it to File manager in my ACP.

Also if it doesnt exist, is there a way, how to connect via user through FTP? I mean if i will paste there something, it will be under user not a root.
User avatar
Tobi
Community Moderator
Posts: 2812
Joined: Thu 5. Jan 2017, 13:24

Re: Command for file owner change

Post by Tobi »

Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Command for file owner change

Post by Florian »

Hello,

the command is called chown

e.g.

Code: Select all

chown -R user:group *
That will change all files and subdirectories of the folder you changed to. !!!! So please take care that you run this command in the correct folder!!!!
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Locked