Reputation: 1305
I'm in a totally new situation. I have the access on root on a reseller account. One of the clients for that reseller has a file, he can't modify. Is a file installed with a plugin in wordpress. That much I understood. He is not the owner of the file. I have to change the owner of that file. I have shell acces and cron acces but I was not able to use it to solve the problem. The solution I come out till now, that doesn't work is adding a new cron job(copy and paste from a forum)
#!/bin/bash cd /var/cpanel/users for user in * do chown -R $user.$user /home/$user/public_html/* done
Doesn't work! First of all there is only one line in the cron filed for code so the code above it goes in one line and it looks like is commented. Second, I have no ideea if the cron works. I put my email address to be notified when a cron job is being executed, and I don't get any email.
The only thing I care is to change the ownership of a file.
Upvotes: 0
Views: 10277
Reputation: 5883
(Answered by the OP in a question edit. Converted to a community Wiki Answer. See Question with no answers, but issue solved in the comments (or extended in chat) )
The OP wrote:
Solved!
I used http://winscp.net/eng/index.php
Steps:
WinSCP Login/Session Use you data for Hostname, User name and Password
At File Protocol choose SCP
Login/ Click Yes for the key
Go up a directory by clicking ..
Go to Home and there navigate to your files
right click on file and on properties you will find the owner of the file and there you can change it
Upvotes: 1