Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deb13:otp_authenticator_for_php [2026/08/30 23:40] Bernard Condraudeb13:otp_authenticator_for_php [2026/08/30 23:47] (current) Bernard Condrau
Line 28: Line 28:
 deactivate deactivate
 exit 0</code> exit 0</code>
-  - Give the script correct ownership and permissions:<code>sudo chown www-data:www-data otp.py</code> 
   - Create a php web page which calls the script:<code>vim /home/user/html/otptest.php   - Create a php web page which calls the script:<code>vim /home/user/html/otptest.php
 <?php <?php
 $output = shell_exec('/home/bco/html/otp.sh'); $output = shell_exec('/home/bco/html/otp.sh');
 echo $output;</code> echo $output;</code>
 +  - Give the scripts correct ownership and permissions:<code>sudo chown www-data:www-data /home/bco/html/pyotp-env/otp.py
 +sudo chown www-data:www-data /home/bco/html/otp.sh
 +sudo chmod +x /home/bco/html/otp.sh</code>
 +  - In Synology, you can check the OTP like this:<code>synootp username=user code=otp-code</code>
 +