file permissions
#1
file permissions
How to change the default Sentora file permissions?
Reply
#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
#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
#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
#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
#6
RE: file permissions
Thanks for the help guys.

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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)