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

WebCraker

العبد الفقير إلى الله
طاقم الإدارة
9 مارس 2008
5,645
50
48
Egypt
support-ar.com
بسم الله الرحمن الرحيم


اليوم سنشرح طريقة ايقاف او عمل سسبند 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
 

okpa

عضو جديد
20 يوليو 2011
7
0
0
طيب ازاى اكريت اكونت جديد