From 6501ac2e4f479a68ddb7eba945e5f3d6a1e1fe11 Mon Sep 17 00:00:00 2001 From: scossa Date: Sat, 25 Jan 2025 19:55:40 +0100 Subject: [PATCH] update permessi --- attuale.txt | 2 +- make_index.sh | 12 ++++++------ make_index_without_stats.sh | 10 +++++----- rss_gerator.sh | 8 +++++++- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/attuale.txt b/attuale.txt index 87ba754..d634fc3 100644 --- a/attuale.txt +++ b/attuale.txt @@ -1 +1 @@ -streamingcommunity.paris +streamingcommunity.paris diff --git a/make_index.sh b/make_index.sh index e20d0ec..e81551e 100755 --- a/make_index.sh +++ b/make_index.sh @@ -120,10 +120,10 @@ _EOF ./make_stats.sh # Da i permessi alla cartella (decommentare se hostato) -#chown -R root:root $PWD_SC; echo "cartella di root" +#chown -R root:root $PWD_SC; echo "la cartella $PWD_SC è di root" #chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC" -#chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file" -#chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html" -#chown -R www-data:www-data $PWD_SC/*.json; chmod -R 744 $PWD_SC/*.json; echo "do i permessi ai json" -#chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml" -#chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh" +#chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.json; chmod -R 744 $PWD_SC/*.json; echo "do i permessi ai json dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml dentro a $PWD_SC" +#chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh dentro $PWD_SC" diff --git a/make_index_without_stats.sh b/make_index_without_stats.sh index d93daf2..72bce53 100755 --- a/make_index_without_stats.sh +++ b/make_index_without_stats.sh @@ -118,9 +118,9 @@ cat <<- _EOF > $PWD_SC/index.html _EOF # Da i permessi alla cartella (decommentare se hostato) -#chown -R root:root $PWD_SC; echo "cartella di root" +#chown -R root:root $PWD_SC; echo "la cartella $PWD_SC è di root" #chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC" -#chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file" -#chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml" -#chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html" -#chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh" \ No newline at end of file +#chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml dentro a $PWD_SC" +#chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh dentro $PWD_SC" \ No newline at end of file diff --git a/rss_gerator.sh b/rss_gerator.sh index 62e5687..2360379 100755 --- a/rss_gerator.sh +++ b/rss_gerator.sh @@ -32,4 +32,10 @@ cat <<- _EOF > $PWD_SC/rss.xml _EOF # Da i permessi alla cartella (decommentare se hostato) -#sudo chown -R www-data:www-data $PWD_SC ; sudo chmod -R 755 $PWD_SC \ No newline at end of file +#chown -R root:root $PWD_SC; echo "la cartella $PWD_SC è di root" +#chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC" +#chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.json; chmod -R 744 $PWD_SC/*.json; echo "do i permessi ai json dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml dentro a $PWD_SC" +#chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh dentro $PWD_SC" \ No newline at end of file