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


WebCraker
2008-10-08, 07:44 AM
بسم الله الرحمن الرحيم


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



/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

m4m2004
2010-12-01, 08:39 AM
مشكور ويب كراكر

تقبل مروري ..

ELNOURS.COM
2010-12-05, 11:57 PM
تسلم اخى بارك الله فيك