This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

file permissions
#1
file permissions
How to change the default Sentora file permissions?
Reply
Thanks given by:
#2
RE: file permissions
Why? What is the issue?

You can do that using chown in SSH. It doesn't work with FTP.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: file permissions
(04-19-2015, 11:45 PM)Me.B Wrote: Why? What is the issue?

You can do that using chown in SSH. It doesn't work with FTP.

M B

I want to change the file permissions of the folders of my wordpress websites to 755 and for the files to 644.I can manualy change them using ftp, but its a lot of work and I dont know if its really working that way.
Reply
Thanks given by:
#4
RE: file permissions
So you want a bulk change from the panel? Not supported yet.
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#5
RE: file permissions
I have the same problem with some other panels that i tried on the past.
What i did is to create my own chmod-fix-sentora.sh file with a few lines.

I've attached too for lazy users.
Code:
#!/bin/bash
# basic chmod fix for Sentora www-data folders.

if [ -z $1 ]
 then
   echo "You must pass at least any word of the path name or put _ to fix ALL domains";
elif [ $1 == "_" ]
 then
   find /var/sentora/hostdata/zadmin/public_html/* -type d -exec chmod 755 {} \;
   find /var/sentora/hostdata/zadmin/public_html/* -type f -exec chmod 644 {} \;
   echo "Fixed chmod to ALL domains ";
else
   find /var/sentora/hostdata/zadmin/public_html/*$1* -type d -exec chmod 755 {} \;
   find /var/sentora/hostdata/zadmin/public_html/*$1* -type f -exec chmod 644 {} \;
echo "Fixed chmod to paths that contains $1";
fi


USAGE

fix perms to domain_com and all of subdomains:
Code:
./chmod-fix-sentora.sh domain_com

fix perms to a subdomain (don't need to suplly tld extension because the regexp * value.) :
Code:
./chmod-fix-sentora.sh sub_domain

fix perms on ALL (because all paths has at least one _ on their names.) :
Code:
./chmod-fix-sentora.sh _


Attached Files
.zip   fix-chmod-sentora.sh.zip (Size: 422 bytes / Downloads: 62)
Reply
Thanks given by:
#6
RE: file permissions
Thanks for the help guys.

servicingstop
Reply
Thanks given by:
#7
RE: file permissions
Before running the command, we should make the script executable "chmod +x fix-chmod-sentora.sh"
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
How to set up File Manger for Sentora? donaldaugust 1 3 ,860 01-11-2022, 05:01 AM
Last Post: Nigel
Site Not Updating changes made in The HTML file me7leelee 4 9 ,307 05-20-2020, 06:29 PM
Last Post: 5050
How to give the cliens file manager access to their respective domain directory vsvinit0 4 10 ,542 10-09-2019, 10:05 PM
Last Post: vsvinit0

Forum Jump:


Users browsing this thread: 2 Guest(s)