How to use Chown command

Jovani

Active member
Joined
Jul 10, 2012
Messages
338
Points
28
Hello,

I want to know about Chown command

I want to use this command for all files in a folder or a specific file

please guide me
Thanks in advanced
 

Alex Thompson

Moderator
Joined
Jun 6, 2013
Messages
651
Points
43
Hello,

I want to know about Chown command
I want to use this command for all files in a folder or a specific file

please guide me
Thanks in advanced
Login SSH using Putty or other programs

at # type this code
Code:
# chown -R username.username /path/to/folder/*
or parent directory
Code:
chown username.username public_html -R
for specific file
Code:
# chown -R username.username /path/to/folder/filename
Hope it helps!
 

TejasWebHosting

New member
Joined
Nov 9, 2014
Messages
33
Points
0
To use a shortcut, if you just do chown username. Filename (the dot is important) it will set the username automatically without having to type it again! Try it out...

Especially useful for cPanel ;)
 

kang28ivan

New member
Joined
Nov 10, 2014
Messages
7
Points
0
Complete, want to answer but many are giving way :D
Good luck
 
Older threads
Latest threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top