amnezia-client/client
lunardunno b3ff120bcf
Checking server user permissions to use sudo (#1442)
* Username if whoami returns an error

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

* Update check_user_in_sudo.sh

Сommand to use home directory name if whoami returns error or is missing for check_user_in_sudo.sh.
Checking server user permissions to use sudo using a package manager or using uname.
Сhecking and redefining the system language.
Checking requirements for sudo users or root in script.

* Cases have been changed and added.

Changed description of the “Server User Not In Sudo” case.
Corrected the name and description of the "ServerPacketManagerError" case. Packet to Package.
Adding a "SudoPackageIsNotPreinstalled" case.
Adding a "ServerUserNotAllowedInSudoers" case.
Adding a "ServerUserPasswordRequired" case.

* Serves errors have been changed and added.

Corrected the name of the "ServerPacketManagerError" error to "ServerPackageManagerError".
Adding a "SudoPackageIsNotPreinstalled" error.
Adding a "ServerUserNotAllowedInSudoers" error.
Adding a "ServerUserPasswordRequired" error.

* Return ServerPacketManagerError

Return to the name "ServerPacketManagerError".

* Added errors handling 

Added new errors' handling to serverController.cpp.
Permission checks are also performed for the root user.

* Update translations

Updating translations for two existing server errors.

* Myanmar translation update

* Update for my_MM.ts

* checking for not allowed

Checking for "not allowed" in stdOut

* Removed "not allowed"

Removed check for "not allowed" in stdOut

* Removed nested launch

Removed nested launch via sudo

* Returned nested launch

Returned nested launch via sudo

* All checks with sudo

Both checks with sudo always run.

* Moved removing timestamp sudo

Removing the sudo timestamp is done every time.

* Checking the user directory

Checking the accessibility of the user's home directory

* Polishing

Изменение порядка обработки ошибок.

* changing detection order 

change the order of detection of inconsistencies:
1. sudo not preinstalled. (if user != root)
2. user not in sudo or wheel group. (if user != root)
3. user's directory is not accessible. (for all)
4. user not allowed in sudoers. (for all)
5. user password required. (for all)

* Packet to Package

* chore: bump version (#1463)

* fix for sh (#1462)

Fix for servers where sh is used as default shell.

* Username if whoami returns an error

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

* Update check_user_in_sudo.sh

Сommand to use home directory name if whoami returns error or is missing for check_user_in_sudo.sh.
Checking server user permissions to use sudo using a package manager or using uname.
Сhecking and redefining the system language.
Checking requirements for sudo users or root in script.

* Cases have been changed and added.

Changed description of the “Server User Not In Sudo” case.
Corrected the name and description of the "ServerPacketManagerError" case. Packet to Package.
Adding a "SudoPackageIsNotPreinstalled" case.
Adding a "ServerUserNotAllowedInSudoers" case.
Adding a "ServerUserPasswordRequired" case.

* Serves errors have been changed and added.

Corrected the name of the "ServerPacketManagerError" error to "ServerPackageManagerError".
Adding a "SudoPackageIsNotPreinstalled" error.
Adding a "ServerUserNotAllowedInSudoers" error.
Adding a "ServerUserPasswordRequired" error.

* Return ServerPacketManagerError

Return to the name "ServerPacketManagerError".

* Update translations

Updating translations for two existing server errors.

* Added errors handling 

Added new errors' handling to serverController.cpp.
Permission checks are also performed for the root user.

* Myanmar translation update

* Update for my_MM.ts

* checking for not allowed

Checking for "not allowed" in stdOut

* Removed "not allowed"

Removed check for "not allowed" in stdOut

* Removed nested launch

Removed nested launch via sudo

* Returned nested launch

Returned nested launch via sudo

* All checks with sudo

Both checks with sudo always run.

* Moved removing timestamp sudo

Removing the sudo timestamp is done every time.

* Checking the user directory

Checking the accessibility of the user's home directory

* Polishing

Изменение порядка обработки ошибок.

* changing detection order 

change the order of detection of inconsistencies:
1. sudo not preinstalled. (if user != root)
2. user not in sudo or wheel group. (if user != root)
3. user's directory is not accessible. (for all)
4. user not allowed in sudoers. (for all)
5. user password required. (for all)

* Undoing unintended changes

Undoing unintended changes.

* Undoing unintended change

Undoing unintended change.

* not allowed to use sudo

The user is not allowed to use sudo on this server.

* Capital letters in the error

Capital letters in the error description.

---------

Co-authored-by: albexk <albexk@proton.me>
2025-03-14 20:39:58 +07:00
..
3rd feat: remove OpenVPNAdapter submodule 2025-02-10 19:40:14 +01:00
3rd-prebuilt@efad1a5b5c Update XRay for Desktops (#1459) 2025-03-10 15:11:26 +07:00
android fix: remove mandatory requirement for android.software.leanback (#1248) 2025-01-09 20:10:42 +07:00
cmake Merge branch 'dev' of github.com:amnezia-vpn/amnezia-client into feature/subscription-settings-page 2025-02-15 11:55:03 +07:00
configurators feature: remove the limit of ip addresses = 254 (#1438) 2025-03-06 21:43:47 +07:00
containers Update VPN description texts 2025-02-05 23:11:21 +00:00
core Checking server user permissions to use sudo (#1442) 2025-03-14 20:39:58 +07:00
daemon feature/mozilla upstream (#1237) 2025-01-13 21:45:06 +07:00
fonts fixed qml warnings and hindi language warnings (#805) 2024-07-11 10:36:24 +01:00
images Merge pull request #1440 from amnezia-vpn/feature/subscription-settings-page 2025-02-28 22:17:43 +07:00
ios feat: remove ios openvpn script and associated cmake configuration 2025-02-10 19:40:14 +01:00
macos libleaf cleanup 2024-02-09 21:22:27 +00:00
mozilla feature/mozilla upstream (#1237) 2025-01-13 21:45:06 +07:00
platforms fix: iOS/iPadOS crashes on a start of the app because of there's no keyFrame set (#1448) 2025-03-04 18:13:04 +07:00
protocols Merge pull request #1382 from amnezia-vpn/bugfix/ipsec-pfs 2025-02-06 16:16:38 +01:00
server_scripts Checking server user permissions to use sudo (#1442) 2025-03-14 20:39:58 +07:00
translations Checking server user permissions to use sudo (#1442) 2025-03-14 20:39:58 +07:00
ui Remove unneeded flushDns (#1443) 2025-03-05 13:21:39 +07:00
utils Improve navigation cpp (#1061) 2024-12-31 10:16:52 +07:00
amnezia_application.cpp chore: minor ui fixes 2025-02-22 14:42:09 +07:00
amnezia_application.h chore: minor ui fixes 2025-02-22 14:42:09 +07:00
CMakeLists.txt Merge branch 'dev' of github.com:amnezia-vpn/amnezia-client into feature/subscription-settings-page 2025-02-15 11:55:03 +07:00
constants.h WireGuard for MacOS (#248) 2023-07-15 22:19:48 +01:00
main.cpp replaced QSingleApplication with QLocalServer 2024-09-25 11:42:02 +05:00
managementserver.cpp Merge branch 'dev' 2023-04-11 18:00:54 +01:00
managementserver.h Crash fix in management server 2021-01-07 19:10:24 +03:00
migrations.cpp feature/versioning-for-desktop (#181) 2023-05-16 01:34:06 +01:00
migrations.h Implementation of "migration manager" to fix placement of config files issue appeared after moving from Qt 5 to Qt 6 2023-03-29 09:31:24 +03:00
resources.qrc Merge pull request #1440 from amnezia-vpn/feature/subscription-settings-page 2025-02-28 22:17:43 +07:00
secure_qsettings.cpp refactoring: improved the performance of secure_settings 2025-01-19 10:12:30 +07:00
secure_qsettings.h refactoring: improved the performance of secure_settings 2025-01-19 10:12:30 +07:00
settings.cpp feature: added ad label on page home (#1316) 2025-01-07 10:38:32 +07:00
settings.h feature: added ad label on page home (#1316) 2025-01-07 10:38:32 +07:00
utilities.cpp bugfix: Correctly use QProcess::start and QProcess::execute (#1331) 2024-12-31 10:21:40 +07:00
utilities.h Merge branch 'dev' into bugfix/win_check_ps 2024-10-18 15:42:08 +01:00
vpnconnection.cpp chore: fixed again log output with split tunneling info 2025-01-27 11:59:56 +07:00
vpnconnection.h added killSwitch switcher (#746) 2024-04-25 14:01:00 +01:00