Advertisements

Delete all ssh user in a linux vps

Advertisements

Debian:

Advertisements

while IFS=”:” read -r users x uid x; do { [[ $uid -gt 1000 ]] && [[ $uid -lt 65534 ]]; } && userdel -r -f “$users”; done </etc/passwd

Centos:

while IFS=”:” read -r users x uid x; do { [[ $uid -gt 500 ]] && [[ $uid -lt 65534 ]]; } && userdel -r -f “$users”; done </etc/passwd

Ty sa fix homer_simpson

Advertisements

Alternative way:
Changing user shell to /usr/sbin/nologin instead na iremove lahat ng user
by homer_simpson

Advertisements

Debian:

while IFS=”:” read -r users x uid x; do { [[ $uid -ge 1000 ]] && [[ $uid -lt 65534 ]]; } && chsh -s /usr/sbin/nologin “$users”; done </etc/passwd

CentOS:

while IFS=”:” read -r users x uid x; do { [[ $uid -ge 500 ]] && [[ $uid -lt 65534 ]]; } && chsh -s /usr/sbin/nologin “$users”; done </etc/passwd

Advertisements

8 thoughts on “Delete all ssh user in a linux vps

  1. Our at hand sorting and filtering alternatives help to make it really easy to get just about all the free of charge thick adult you would like. Sort movies by newest or most well-known and management the variety of sources used for every effect still. You’ll acquire a extremely personalized go through when enjoying your porno with us. Put on’t neglect to visit connected categories like chubby porn as well, BBW, PAWG, and many others. Thick porn offers a undesirable rap in the media because it typically helps make persons indignant. People can get distressed that a woman is certainly also employing the phrase when they notice something that offends them. This will be not really a large trouble when a woman makes use of the period but it will be when the individual staying upset does not know what it indicates. Thick porn, also recognized as chubby adult porn or BBW porn, is a time period for adult movie that will be more in the condition of a lady. Thick porn is without a doubt when she is normally utilized by a girl system to display her assets or the vagina. A girl uses her arms to attract the camera Sometimes. Often she will be introduced to like a puffy girl or a plump adult porn legend. The term has got ended up around for a very long time but definitely not many people will be actually applied to it because it will be not really as prevalent as some other porn language.

  2. Very good blog! Do you have any tips for aspiring writers? I’m hoping to start my own blog soon but I’m a little lost on everything. Would you recommend starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m totally overwhelmed .. Any ideas? Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertisements