How to suspend user account autonatically with cron job?
Posted: Fri Aug 24, 2018 5:34 am
Could you please help me to solve this with cron job? Suspend user command is: v-suspend-user
How can I suspend a user for example called loqopedplus with command?
I added cron with this command "sudo /usr/local/vesta/bin/v-suspend-user loqopedplus" but it didn't work. But when I enter this command in putty it works. I add print screen here.
https://drive.google.com/open?id=1UTemI ... 0HpNHJWPcn
I get email notification for this.
/usr/local/vesta/bin/v-suspend-user: line 17: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 18: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 25: check_args: command not found
/usr/local/vesta/bin/v-suspend-user: line 26: is_format_valid: command not found
/usr/local/vesta/bin/v-suspend-user: line 27: is_object_valid: command not found
/usr/local/vesta/bin/v-suspend-user: line 28: is_object_unsuspended: command not found
/usr/local/vesta/bin/v-suspend-user: line 77: /v-restart-web: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 78: check_result: command not found
/usr/local/vesta/bin/v-suspend-user: line 80: /v-restart-dns: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 81: check_result: command not found
/usr/local/vesta/bin/v-suspend-user: line 83: /v-restart-cron: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 84: check_result: command not found
/usr/local/vesta/bin/v-suspend-user: line 87: update_user_value: command not found
/usr/local/vesta/bin/v-suspend-user: line 88: increase_user_value: command not found
/usr/local/vesta/bin/v-suspend-user: line 91: log_event: command not found
How can I suspend a user for example called loqopedplus with command?
I added cron with this command "sudo /usr/local/vesta/bin/v-suspend-user loqopedplus" but it didn't work. But when I enter this command in putty it works. I add print screen here.
https://drive.google.com/open?id=1UTemI ... 0HpNHJWPcn
I get email notification for this.
/usr/local/vesta/bin/v-suspend-user: line 17: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 18: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 25: check_args: command not found
/usr/local/vesta/bin/v-suspend-user: line 26: is_format_valid: command not found
/usr/local/vesta/bin/v-suspend-user: line 27: is_object_valid: command not found
/usr/local/vesta/bin/v-suspend-user: line 28: is_object_unsuspended: command not found
/usr/local/vesta/bin/v-suspend-user: line 77: /v-restart-web: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 78: check_result: command not found
/usr/local/vesta/bin/v-suspend-user: line 80: /v-restart-dns: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 81: check_result: command not found
/usr/local/vesta/bin/v-suspend-user: line 83: /v-restart-cron: No such file or directory
/usr/local/vesta/bin/v-suspend-user: line 84: check_result: command not found
/usr/local/vesta/bin/v-suspend-user: line 87: update_user_value: command not found
/usr/local/vesta/bin/v-suspend-user: line 88: increase_user_value: command not found
/usr/local/vesta/bin/v-suspend-user: line 91: log_event: command not found