Commit graph

11 commits

Author SHA1 Message Date
lunardunno
0637c0f596
polishing
extra space removed
2025-03-01 14:26:05 +04:00
lunardunno
464aa4ceae
Merge branch 'check_sudo_permissions' into checking_sudo_permissions 2025-01-16 01:18:42 +04:00
lunardunno
db83555a03
Checking server user permissions to use sudo
Checking server user permissions to use sudo using a package manager.
2025-01-16 01:14:42 +04:00
lunardunno
7b2a4ea922
improved script readability 2024-12-10 20:14:29 +04:00
lunardunno
795ccaa080
added timestamp removal for sudo 2024-12-10 06:13:08 +04:00
lunardunno
ce4cb28e74
improved script readability 2024-12-10 05:44:55 +04:00
lunardunno
c9423dd9af
improved script readability 2024-12-09 15:31:58 +04:00
lunardunno
055c8f7b66
splitting the sudo check script
The sudo command check script is split to check permissions correctly
2024-12-09 08:51:55 +04:00
lunardunno
62497024f9
script simplification
Simplifying the script for later adding an exception for root to the server controller
2024-12-08 14:22:10 +04:00
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
vladimir.kuznetsov
ea9917dacc added a script to check the user in the sudo group
- move isServerDpkgBusy to separate script
2023-03-19 17:26:43 +03:00