🔒 Closed Debian 9 Lock User for sharing their account(Multilogin in same server)

Status
Not open for further replies.
Eto pwede din, one-liner lang.

Bash:
LOGFILE="/etc/openvpn/openvpn-status.log" for i in $(sed -n '/^Common Name/,/^ROUTING TABLE/p' $LOGFILE | sed '1d;$d' | sort | uniq -d | cut -d',' -f1); do echo "Locking user $i..."; passwd -l $i; done
Mahusay ka talaga master sa coding 😁
 
LOGFILE="/etc/openvpn/openvpn-status.log" for i in $(sed -n '/^Common Name/,/^ROUTING TABLE/p' $LOGFILE | sed '1d;$d' | sort | uniq -d | cut -d',' -f1);

pano po ito gamitin? di kasi nagana sa console ng vps? error
 
For me... i'm just delete line DUPLICATE-CN on server_tcp.conf and server_udp.conf... i know its not lock the user but it prevent it from multi login... test and its work on bonchan script.. correct me if i'm wrong... noobies here... just share a knowledge...
 
Status
Not open for further replies.

About this Thread

  • 98
    Replies
  • 6K
    Views
  • 30
    Participants
Last reply from:
mustis

Trending Topics

Online now

Members online
1,012
Guests online
880
Total visitors
1,892

Forum statistics

Threads
2,274,663
Posts
28,957,383
Members
1,233,393
Latest member
rentaro0927
Back
Top