PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : suphp تغییر همه folder/file ها در /home از 777 به ...



hamid_net
January 18th, 2011, 13:41
سلام

من suphp نصب کردم و کاربرای قدیمی ار 777زیاذ استفاده کردند . به یک command / script نیاز دارم که همه کاربران رو چک کنه و 777 رو هم change کنه

یه script هست که به من جواب نداد :


root@server [/]# chmod go-w /home/*
chmod: changing permissions of `/home/aquota.user': Operation not permitted
root@server [/]#


---------- Post added at 01:41 PM ---------- Previous post was at 12:49 PM ----------

این command جواب داد

chmod go-w /home/* -R

Talahost.Com
January 18th, 2011, 14:11
find /home/*/pu*l/* -type d -exec chmod 755 {}
\;

find /home/*/pu*l/* -type f -exec chmod 644 {}
‏\;

برای زیر پوشه ها هم ستاره ی آخر را دوباره اضافه کن...
مثلا:
find /home/*/pu*l/*/* -type f -exec chmod 644 {}
‏\;

‏ ‏find /home/*/pu*l/*/*/* -type f -exec chmod 644 {}
‏\;

Woshka
January 18th, 2011, 15:59
این لینک رو ببین
fixing internal server error caused by SuPHP handler in apache | Woshka's Experiences (http://woshka.com/blog/apache/fixing-internal-server-error-in-php-handler-in-apache.html)