Change Ownership in Plesk via SSH?

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
Points
28
I am using this command to change ownership in plesk via ssh

Code:
chown username:psacln /var/www/vhosts/example.com/httpdocs/folder/*
But it only worked with files in the first level of the directory that I wanted to change ownership. other files and folders are still keeping "root" as owenership

What is right command to change Ownership in Plesk via SSH?
 

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
Points
28
I could fix the problem.

I missed -R in the command above, correct command is:

Code:
chown -R username:psacln /var/www/vhosts/example.com/httpdocs/folder/
psacln is a group name.
 
Latest Threads
Replies
1
Views
29
Replies
2
Views
50
Replies
1
Views
132
Replies
2
Views
109
Recommended Threads
Replies
17
Views
7,588
Replies
0
Views
729
Replies
15
Views
4,563
Replies
0
Views
1,978

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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