-
January 18th, 2011, 13:41
#1
suphp تغییر همه folder/file ها در /home از 777 به ...
سلام
من 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
ویرایش توسط hamid_net : January 18th, 2011 در ساعت 12:52
-
-
January 18th, 2011 13:41
# ADS
-
January 18th, 2011, 14:11
#2
پاسخ : suphp تغییر همه folder/file ها در /home از 777 به ...
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 {}
\;
-
-
January 18th, 2011, 15:59
#3
عضو دائم
پاسخ : suphp تغییر همه folder/file ها در /home از 777 به ...
-