Hi, currently I use server manager to disable customers account if he doesn't pay for vpn etc
But we want to automate things by making a script, so what is the linux ssh command to disable a user's security policy access and change it to disable?
also what is the command to disable the whole virtual hub and also what are the commands to reactivate the account? Thanks!
Note - i use centos 6.7
How to Disable User or Virtual Hub
-
- Posts: 223
- Joined: Fri Jul 03, 2015 2:21 pm
Re: How to Disable User or Virtual Hub
If you issue : ./vpncmd ?, you will get a few description for their parameters, one of them this : /IN, and vpncmd says about that parameter :
This will specify the text file 'infile' that contains the list of commands that are automatically executed after connection is completed. If the /IN parameter is specified, the vpncmd program will terminate automatically after the execution of all commands in the file are finished.
you can specify your commands so that you disable an account for a specific user or do the reverse, disabling or enabling the whole hub is also possible
your job is WHEN to execute the command ?, so you have to find out a way to know whether a customer paid his bill or not, then execute the command, it's the bills are records in database(Mysql, eg) it's easy to do that, may be the same thing is true for the other database platforms, so it's up to you to make the right decision
Good luck (:
This will specify the text file 'infile' that contains the list of commands that are automatically executed after connection is completed. If the /IN parameter is specified, the vpncmd program will terminate automatically after the execution of all commands in the file are finished.
you can specify your commands so that you disable an account for a specific user or do the reverse, disabling or enabling the whole hub is also possible
your job is WHEN to execute the command ?, so you have to find out a way to know whether a customer paid his bill or not, then execute the command, it's the bills are records in database(Mysql, eg) it's easy to do that, may be the same thing is true for the other database platforms, so it's up to you to make the right decision
Good luck (: