عرض مشاركة واحدة
قديم 25-10-09, 10:58 PM   #1
إداري سابق

 










 

سالم الفريدي غير متواجد حالياً

سالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of lightسالم الفريدي is a glorious beacon of light

افتراضي شرح عمل suspend او ايقاف مستخدم عن طريق الشيل

بسم الله الرحمن الرحيم



اليوم سنشرح طريقة ايقاف او عمل سسبند suspend لمستخدم بمعني آخر موقع من على الخادم عن طريق الشيل فتنحصر الطريقة بالأمر التالي


كود PHP:
/scripts/suspendacct user reason 


حيث ان user هو المستخدم الذي تريد ايقافه على الخادم

و reason هو سبب ايقاف المستخدم [يمكنك الاستغناء عن reason في حال اذا لا يوجد سبب]

مثال



كود:
[root@host ~]# /scripts/suspendacct user SPAM
كود:
Changing Shell to /bin/false...Changing shell for user.
Warning: "/bin/false" is not listed in /etc/shells Shell changed. Done Locking Password...Locking password for user user. passwd: Success Done Suspending email account logins for user.com .... Done Suspending mysql users Notification => monitor@mail.com via EMAIL [level => 3] Using Quota v3 Support Suspended document root /home/user/public_html Using Quota v3 Support Suspending FTP accounts... Updating ftp passwords for user Ftp password files updated. Ftp vhost passwords synced user's account has been suspended






التوقيع :
    رد مع اقتباس