amnezia-client/client/core/controllers
lunardunno 076b076cd9
Verifying the server user to work with sudo (#1254)
* checking that the username is root

Changing the mechanism for checking that the username is root

* wheel group check (#1198)

Checking if the user is included in the wheel group

* Checking requirements in script (#1210)

* Checking requirements in script

Checking requirements for sudo users in script

* Adding error handling

Adding error handling in the server controller for:
Sudo package is not pre-installed for sudo users.
Server user or associated group is not listed in the sudoers file.
Server user password required

* adding error codes

* added extended error descriptions

* checking sudo permission for root

Сhecking sudo permission for root.
Сhecking and redefining the system language.

* Username if whoami returns an error

Сommand to use home directory name if whoami returns error or is missing.

* Correcting text error

Correction of the text of the extended description of the package manager error

* Updating translations

* Optimization check_user_in_sudo.sh

* exceptions for missing uname

* output only for groups sudo or wheel
2024-12-01 13:51:03 +04:00
..
apiController.cpp Merge pull request #1200 from amnezia-vpn/bugfix/proxy-bypass-enc-check 2024-10-25 10:50:07 +01:00
apiController.h added processing of auth_data section when requesting api config 2024-10-06 13:23:19 +08:00
serverController.cpp Verifying the server user to work with sudo (#1254) 2024-12-01 13:51:03 +04:00
serverController.h pass errorCode by reference in configurators 2024-05-09 20:56:52 +03:00
vpnConfigurationController.cpp added domain name resolving before connection for wg/awg and xray protocols (#814) 2024-09-16 22:14:13 +01:00
vpnConfigurationController.h pass errorCode by reference in configurators 2024-05-09 20:56:52 +03:00